Backend for the Guido application. You can include the library in your project or start it as a standalone API server.
- Node 6
- npm 4
- PostgreSQL
# Run as a simple user
git clone https://github.com/o10if/guido-backend.git
cd guido-backend
npm install
You need to provide the DATABASE_URL
environment variable encoding the database connection
information.
-
Linux:
export DATABASE_URL="postgres:https://user:password@host:port/dbname"
-
Windows:
setx DATABASE_URL "postgres:https://user:password@host:port/dbname"
You can also set the PORT
environment variable to change the port used by the API.
# Run as a simple user
npm start