2018-10-31 11:01:40 +02:00
2018-10-03 11:11:49 +03:00
2018-10-03 11:11:49 +03:00
2018-09-21 14:02:22 +03:00
2018-10-31 10:27:51 +02:00
2018-11-02 15:34:30 +02:00
2018-10-31 14:54:38 +02:00
2018-10-31 14:54:38 +02:00
2018-10-07 20:05:51 +03:00

Build Status

Installation

Clone and run: npm install

Instructions

Create .env file to the project root and add following lines:

DATABASE_URI=TODO
PORT=3001

TEST_PORT=3002
TEST_DATABASE_URI=//

Run npm run watch to run the project in watch mode

Test get request: http://localhost:3001/api/examples/. Should return { "test": "ok" }

Docker instructions

Docker cheatsheet

Database instructions

  • sudo might need to be used with docker commands

  • "docker ps" lists all running containers

  1. Copy docker-compose.yml from shared Google drive folder
  2. Run "docker-compose up" inside the same folder where your docker-compose.yml file is. Now frontend, backend and database containers should be running
  3. Open new terminal or use detached mode (docker-compose -d up)
  4. "docker exec -it containername /bin/bash" lets you run commands inside a container
  5. Run "psql -U postgres" inside container and now you should be able to do sql queries
S
Description
No description provided
Readme
14 MiB
Languages
JavaScript 97.9%
CSS 1.9%
Dockerfile 0.2%