Skip to content

nihalshahria/Likho

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

News-CRUD

About

This is a CRUD application for posting and managing news.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

To run this project, you will need to have the following installed:

  1. Node.js
  2. NPM
  3. Docker
  4. Docker Compose

Installing

  1. Go to the project directory and run the following command to start docker-compose:
docker-compose up -d
  1. Go to backend/ directory and Run the following command to install dependencies:
npm i
  1. create a .env file in backend/ directory of the project and add the following lines:
PORT=5000
DB_NAME="news_blog"
DB_USER="appuser"
DB_PASS="secret"
JWT_KEY="secret"
  1. Run the following following command to create the database:
npm run create-db
  1. Run the following command to start the server:
npm start
  1. For testing the backend api a Postman collection file is provided.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published