Skip to content
This repository was archived by the owner on Feb 16, 2020. It is now read-only.

How to run the API

Dave Safanyuk edited this page Apr 23, 2019 · 2 revisions

HOW TO RUN THE API

    1.  cd fetcher

    2.  cd api

    3.  npm install

Before you make sure you have the database set up, you will have to export your database password as an environment variable so Node can access it.

Environment variables needed:

  • DBHOST - URL to the MySQL database | DEFAULT 127.0.0.1

  • DBUSER - user for MySQL database | DEFAULT root

  • DBPASS - password to the database

  • SECRET_ACCESS_KEY - secret key needed for AWS S3

  • ACCESS_KEY - key need for AWS S3

for macOs

DBPASS=**YOURPASSWORD** npm start

for Win

$env:DBPASS="**YOURPASSWORD** npm start

Clone this wiki locally