The HTTP API for mourgos.gr.
Pushes to master are deployed via TravisCI.
- 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
- Install dependencies:
npm install
- Start the API:
npm start
By default, the API will bind to port 3000.