https://github.com/ungdev/campus-utt-mobile-api
API for UTT mobile app
https://github.com/ungdev/campus-utt-mobile-api
Last synced: about 1 year ago
JSON representation
API for UTT mobile app
- Host: GitHub
- URL: https://github.com/ungdev/campus-utt-mobile-api
- Owner: ungdev
- License: mit
- Created: 2019-01-30T10:21:51.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-30T16:57:56.000Z (over 7 years ago)
- Last Synced: 2025-02-15T00:19:07.962Z (over 1 year ago)
- Language: JavaScript
- Size: 62.5 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CAMPUS UTT API
## Requirements
* [Node.js](https://nodejs.org/)
* [yarn](https://yarnpkg.com/)
## Installation
```
git clone git@github.com:ungdev/campus-utt-mobile-api.git
# or
git clone https://github.com/ungdev/campus-utt-mobile-api.git
cd campus-utt-mobile-api
yarn
```
## Database
```
# create the databse 'campus', should be in utf8 not utf8mb4, otherwise it wont work
CREATE DATABASE campus CHARACTER SET utf8;
```
## Configuration
```
# copy env file for all environments
cp .env.example .env
# makes your changes in .env, which will not be pushed
nano .env
```
## Commands
```
yarn dev # development server
yarn start # production server
yarn serve # pm2 production server (load balancing)
yarn reload # pm2 hot reload
yarn lint # prettier lint
```
## Structure