Skip to content
Rest API for Levels and Top Design written in node.js using express and mysql
Branch: dev
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gulp
src
.babelrc
.editorconfig
.gitignore
.travis.yml
CODE_OF_CONDUCT.md
LICENSE
README.md
deploy.sh
dredd.yml
gulpfile.babel.js
jsconfig.json
package.json
serveCluster.sh
tsconfig.json
tslint.json
updator.js

README.md

API

MegaOP Build Status Greenkeeper badge Discord

REST API written in node.js using express and mysql

This API is primarily intended for intern usage.

API Docs

The generated API Documentation is stored in the dist/docs.html folder after building, or accessible via the route /docs

Build system

Several gulp tasks are provided, which are described by running gulp help:

  • typescript linting/compiling tasks (watch/watchAndServe/lint/tdd)
  • server application + autorestart it when code changes (through nodemon)

Installation

  • Node must be installed on the system
  • Run npm install from the root folder to install all required dev/build dependencies

Developing

  • Use the gulp watchAndServe task during development to get hot code-reloading/test running when you modify your code

Running production server:

Do not forget renaming the file .env.example located in src folder to .env and insert your data correctly.

To make use of all your server resources, it is recommended to run the server in cluster mode (via the PM2 package)

Use the gulp serveCluster task. You can monitor the cluster and issue commands by running pm2 command (for this you might want to install pm2 globally, npm install pm2 -g)

Committing

This project uses gitmoji for all commit messages:

Gitmoji is an initiative to standardize and explain the use of emojis on GitHub commit messages. Using emojis on commit messages provides an easy way of identifying the purpose or intention of a commit.

You can’t perform that action at this time.