Skip to content

eccentricexit/comperio-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Comperio Backend

standard-readme compliant JavaScript Style Guide

Persist data and broadcast update requests.

This app was built for educational purposes, part of my nanodegree program.

This nodejs server is a companion project to the Comperio app. It is a firebase cloud messaging server and handles persistance on mongodb.

Features

  • Firebase Cloud Messaging
  • Mongoose

Requirements

  • You must have your firebase console and account properly configured for this app to work.
  • You must have your fcm key ready to be used on installation step 2.

See the oficial documentation on how to do these things.

  • You should also have a mongodb instance running. Paste this on your mongodb CLI if you want some fake data.

Install

  1. On the root, npm install
  2. cd api && touch fcm.json
  3. Paste your fcm key inside this file and save. See the oficial documentation for instructions on how to generate this file.

Usage

  1. On the root npm start server.js.
  2. GETand POST to http://localhost:3000/v1/schedules. More information on routes here.

License

AGPL