Skip to content

haifa-dev/server

Repository files navigation

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.

About

back-end repo for haifa dev website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published