Skip to content

Latest commit

 

History

History
84 lines (56 loc) · 1.49 KB

README.md

File metadata and controls

84 lines (56 loc) · 1.49 KB

UC Courses REST API

Build Status dependencies dev-dependencies

Development

Prerequisites

  • Node 5.3.x or newer
  • MongoDB installed and running

Preparation

Clone this repository:

git clone https://github.com/almapp/uc-courses.git
cd uc-courses

Install dependencies:

npm install

Run:

npm run develop

This will start the application and will be accessible on http://localhost:3000/.

Test

Run test suite with:

npm test

Production

Prerequisites

Setup

Clone this repository:

git clone https://github.com/almapp/uc-courses.git
cd uc-courses

Set the environment variables:

# Optional:
# Perform a GET to this endpoint to manually start the scraping
export SECRET_ENDPOINT=secret_route

Start with:

docker-compose up -d

See the logs with:

docker-compose logs