An awesome post API.
- Download this repository.
- In a terminal, enter the repository folder.
- Follow the steps according to the option you want:
- Create a
.envfile with the content of the.env.example. - Run the command
npm installto install the dependencies. - A mongo database is required. You can run the
docker-compose up -dcommand to setup a mongo database. Feel free to edit thedocker-compose.ymlfile. - Run the command
npm run dev. - Make requests to
http://localhost:<port>, where<port>is the port set in the.envfile.
- Create a
.envfile with the content of the.env.example. - Run the command
npm installto install the dependencies. - Run the command
npm run build. - A mongo database is required. You can run the
docker-compose up -dcommand to setup a mongo database. Feel free to edit thedocker-compose.ymlfile. - Run the command
npm run start. - Make requests to
http://localhost:<port>, where<port>is the port set in the.envfile.
Done! 😎
- Create a
.env.testfile with the content of the.env.example. - Run the command
npm installto install the dependencies. - A mongo database is required. You can run the
docker-compose up -dcommand to setup a mongo database. Feel free to edit thedocker-compose.ymlfile. - Run the command
npm run test.
See docs/endpoints.md.