Installing a framework to use it is not always obvious because of the configuration that the developer must make.
Unfortunately there is currently no equivalent to automatically create the project. (But we are thinking about it! 😐)
Let's get to the heart of the matter.
In order to develop with the framework, you need to have
or
The @discord-factory/command module is a CLI which, in the same way as Artisan for Laravel, will allow you to interact quickly with the bot's functionalities. You can now initialize a project very easily with the following command
Answer the questions and a blank project will be initialized according to the elements you have defined. An .env file will be created, this file must have at least the following data :
All you have to do is install the dependencies with the following commands
or
The Factory framework uses in memory compilation allowing typescript code to be executed directly by ts-node without having to go through a build folder. Furthermore, this hot compile allows you to reduce your CPU usage by almost 4 times by reducing the memory cost from ~600MB to ~170MB.
or