Skip to content

Cyann-UBC/Cyann

Repository files navigation

Cyann (Backend)

MIT licensed Build Status dependencies Status devDependencies Status Coverage Status

Node.js + MongoDB server used to provide backend API service for Cyann Mobile & Web Application.

Getting Started

Prerequisites

Before you proceed, ensure that you have the following installed on your local machine:

Having problems installing? Checkout our wiki page!

Installing dependencies

Clone the repository to your local machine & install all the dependencies

$ git clone https://github.com/Howard-Zhou/Cyann.git
$ cd ./Cyann
$ npm install

If you have Yarn installed, run the following commands instead

$ git clone https://github.com/Howard-Zhou/Cyann.git
$ cd ./Cyann
$ yarn

Firing up our Server

Deploy

Before you run the server, start the MongoDB process and run it in the background (default url: localhost:27017)

$ mongod

Now open a new tab in your terminal & run the Node.js server (default url: localhost:8080)

$ npm start

Testing

Run the entire test suite (Note: Our tests are written using JavaScript ES6 syntax, hence you need Node.js v6.x.x or higher to get it to work)

$ npm run test

Generate test coverage report with Istanbul

$ npm run coverage

API Documentation

Please refer to the API documentation located in Cyann/doc for details.

Opening Issues

If you encounter a bug with Cyann (Backend) we would like to hear about it. Search the existing issues and try to make sure your problem doesn’t already exist before opening a new issue. It’s helpful if you include the version and OS you’re using. Please include a stack trace and reduced repro case when appropriate, too.

Releases

No releases published

Packages

No packages published