Skip to content

tallerify/shared-server

Repository files navigation

Shared Server

Build Status codecov

Installation

With Docker and Docker Compose

  1. Install Docker and Docker Compose
  2. Run $ docker-compose up --build
  3. Go to http://localhost:3000/

Without Docker

Install depenencies

  1. Install postgres:
  • $ sudo apt-get update
  • $ sudo apt-get install postgresql postgresql-contrib
  1. Create database (replace dbname with used database):
  • $ psql -U postgres -h localhost
  • $ postgres=# CREATE DATABASE dbname;
  1. Install the node packages via:
  • $ npm install

Start

To start the application (server and client) run:

  • npm start

Test

For running the test suit run:

  • npm test

Documentation