0.0.4 • Published 3 years ago
server-maker v0.0.4
��# npx create-api
it is a tool that allows making a whole basic API, using technologies such as node.js including express and koa, also mongoose or sequalize as ORM.
HOW TO USE IT: // getting started
- firstly you have to create a new folder where the project will be built,
- open a terminal located in the folder you have made and run the command npm init, as a result, the file j.son will be made.
- in the same terminal run the command npx create-api
npx create-api
- answer the question regarding the project, once you have finished the server will be installed.
- go to the server folder and test it, it should be already working
CONSIDERATIONS
- A new folder called server will be made, therefore, if it already exists the process won't be allowed to go ahead.
- there are some input validations, such as the port must be a number, the database nada as the models or collection can not be called with numbers or symbols.
- the dependencies should be installed automatically, however, double-check that everything has been gone well.