This is a CRUD application for posting and managing news.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
To run this project, you will need to have the following installed:
- Node.js
- NPM
- Docker
- Docker Compose
- Go to the project directory and run the following command to start docker-compose:
docker-compose up -d
- Go to
backend/
directory and Run the following command to install dependencies:
npm i
- create a
.env
file inbackend/
directory of the project and add the following lines:
PORT=5000
DB_NAME="news_blog"
DB_USER="appuser"
DB_PASS="secret"
JWT_KEY="secret"
- Run the following following command to create the database:
npm run create-db
- Run the following command to start the server:
npm start
- For testing the backend api a Postman collection file is provided.