API that handles requests from the frontend application and manages the database instance with entities such as Users
and Articles
.
Clone this repository and execute:
npm install
npm start
Run* the existing image by executing:
docker pull viniciusvviterbo/blog_backend:latest
docker run \
-d \
--rm \
-p 4400:4400 \
--env-file ./.env \
--name blog_backend \
--link blog_database:mongo \
viniciusvviterbo/blog_backend:latest
or build your own image by cloning this repository and executing:
docker build -t viniciusvviterbo/blog_backend:latest .
docker run \
-d \
--rm \
-p 4400:4400 \
--env-file ./.env \
--name blog_backend \
--link blog_database:mongo \
viniciusvviterbo/blog_backend:latest
*Note: The docker must be fed a .env
file with NODE_ENV
set to prod
for the application to identify its running environment.
The API is now accessible at http://localhost:4400
. Feel free to execute an HTTP request with the following methods:
GET
POST
PUT
PATCH
DELETE