Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 902 Bytes

README.md

File metadata and controls

42 lines (28 loc) · 902 Bytes

mourgos-api

The HTTP API for mourgos.gr.

Build Status

Pushes to master are deployed via TravisCI.

Development

  1. Set up the database First you need to start a MariaDB instance (by default on your localhost:32770, see db/config/development.json). If you have Docker installed, run:
./start_development_db.sh

This will start MariaDB in a docker container and expose port 32770.

You then need to run db/backup.sql to set up the database. You could do this by connecting to the databse using the MySQL client:

mysql --port 32770 --password development --user root

And then running

source db/backup.sql
  1. Install dependencies:
npm install
  1. Start the API:
npm start

By default, the API will bind to port 3000.