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
- Git
- Node.js and npm Node >= 4.x.x, npm >= 2.x.x
- Gulp (
npm install --global gulp
) - MariaDB or MySQL
Developing
- Setup your SQL database as follows:
- Use an empty
root
password - Create an empty database named
ijtema
- Clone the repository and change directory
$ git clone https://github.com/shaan1337/ijtemaApp-backend.git
$ cd ijtemaApp-backend
-
Run
npm install
to install server dependencies. -
Copy
./server/firebase/config.js.example
to./server/firebase/config.js
and edit the file with your Firebase configuration (for push notifications) -
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