ijtemaApp-backend

Backend for ijtemaApp mobile app

Stars
0

Description

This project is the backend to the ijtemaApp ionic mobile app This project was generated with the Angular Full-Stack Generator version 4.2.2.

Features

  • API for programme, competition registration, leaderboard & news
  • API to download registrations for competition organizers: /api/registrations/[sports|literary]
  • Push news notifications
  • Update leaderboard
  • User signup/login

Getting Started

Prerequisites

Developing

  1. Setup your SQL database as follows:
  • Use an empty root password
  • Create an empty database named ijtema
  1. Clone the repository and change directory
$ git clone https://github.com/shaan1337/ijtemaApp-backend.git
$ cd ijtemaApp-backend
  1. Run npm install to install server dependencies.

  2. Copy ./server/firebase/config.js.example to ./server/firebase/config.js and edit the file with your Firebase configuration (for push notifications)

  3. Run gulp serve to start the development server. This should automatically create tables in the database and open your browser when ready.

Production Build

$ gulp build
$ export NODE_ENV=production
$ export PORT=9000
$ node ./dist/server/app.js

See also ijtemaApp-awsdeploy for automatic deployment.

All ijtemaApp projects

ijtemaApp - ionic mobile app ijtemaApp-backend - backend to ijtemaApp ijtemaApp-awsdeploy - deployment script to deploy ijtemaApp-backend AWS