Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 1.16 KB

README.md

File metadata and controls

54 lines (39 loc) · 1.16 KB

haifa:dev / server

Prerequisites

  • You need a PostgreSQL database installed and configured. You can get PostgreSQL from here.

  • You need git to clone the project repository. You can get git from here.

  • You must have Node.js and its package manager (npm) installed. You can get them from here.

  • You can run PostgreSQL with Docker:

docker-compose up -d
# OR
sudo docker run --name postgres -e POSTGRES_PASSWORD=postgres -d -p 5432:5432 postgres

Getting started

  • Open the terminal at the project directory and run the command:
npm install
cp .env.example .env
npm run db:init
npm start
  • On Windows:
npm install
copy .env.example .env
npm run db:init
npm start
  • You should see the server running with the output:
Listening on port 5000
Connection to database established successfully

Now browse to the app at localhost:5000.