dsgnhb / api

Rest API for Levels and Top Design written in node.js using express and mysql
https://api.dsgnhb.de
MIT License
7 stars 3 forks source link
designhub mysql nodejs pm2 rest-api typescript

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:

Installation

Developing

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.