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
.env
file with the content of the.env.example
. - Run the command
npm install
to install the dependencies. - A mongo database is required. You can run the
docker-compose up -d
command to setup a mongo database. Feel free to edit thedocker-compose.yml
file. - Run the command
npm run dev
. - Make requests to
http://localhost:<port>
, where<port>
is the port set in the.env
file.
- Create a
.env
file with the content of the.env.example
. - Run the command
npm install
to install the dependencies. - Run the command
npm run build
. - A mongo database is required. You can run the
docker-compose up -d
command to setup a mongo database. Feel free to edit thedocker-compose.yml
file. - Run the command
npm run start
. - Make requests to
http://localhost:<port>
, where<port>
is the port set in the.env
file.
Done! 😎
- Create a
.env.test
file with the content of the.env.example
. - Run the command
npm install
to install the dependencies. - A mongo database is required. You can run the
docker-compose up -d
command to setup a mongo database. Feel free to edit thedocker-compose.yml
file. - Run the command
npm run test
.
See docs/endpoints.md
.