Choirless / Application-Server

The front-end of the Choirless platform.
MIT License
6 stars 3 forks source link

Choirless Application Server

This repository contains the source code for the Choirless project's web-based front end. It is a Node.js Express app designed to run under Cloud Foundry on the IBM Cloud.

The application server requires two services to operate correctly. You will need to create an IBM Cloud account in order to provision them.

Running locally

Clone the repo:

git clone https://github.com/Choirless/Application-Server.git
cd Application-Server

Install the dependencies

npm install

Setup environment variables by editing a .env file:

SESSION_SECRET=abc123
NODE_ENV=dev
CHOIRLESS_API_ENDPOINT=http://localhost:3000
CHOIRLESS_API_KEY=xyz987
COS_DEFAULT_BUCKET=mybucket
COS_ACCESS_KEY_SECRET=mysecret
COS_ACCESS_KEY_ID=myaccesskeyid
COS_ENDPOINT=my.cos.endpoint.com
COS_REGION=eu-geo
PORT=8000

Run the server

npm run start

You can now visit the Choirless website on http://localhost:8000

Debugging

To view additional debug while running, start the application server with:

DEBUG=* npm run start

Environment variables

Deploying to Cloud Foundry

ic cf push