Skip to content

DailyRecord后台服务

License

GPL-3.0, MIT licenses found

Licenses found

GPL-3.0
LICENSE
MIT
LICENSE.txt
Notifications You must be signed in to change notification settings

ccsulzf/dr_server

Repository files navigation

roas.js

A Web App like Ruby on Rails with Koa2, ES6 and Sequelize.

This project is like Ruby on Rails Project:

  • MVC
  • Database (mysql、mssql...), ORM(sequelize)
  • migration(sequelize-cli)
  • Testing (mocha)
  • Lint (eslint)
  • middleware
  • rest server side

Requirements

  • node ^5.0.0
  • npm ^3.0.0

How to Install

 install nodejs
 install mysql and mssql
 create database:
 for development { database: 'roas_dev', username: 'roas_dev', password: 'roas_dev' }
 for test { database: 'roas_test', username: 'roas_test', password: 'roas_test' }
 clone this project

Features

Structure

├─ src
├── api
│   ├── controllers
│   ├── models
│   ├── routes
│   ├── services
├── lib
├── middleware
├── config
│   ├── config.js
│   ├── database.js
│   └── env
│       ├── test.js
│       ├── development.js
│       └── production.js
├── app.js
├─ db
│   └─ migrations
├─ index.js
├─ .babelrc
├─ .sequelizerc
├─ package.json
├─ public
├─ log
└─ test
	├─ controllers
	├─ middlewares
	├─ models
	├─ services
	├─ bootstrap.test.js
	└─ mocha.opts

Usage

npm install
npm run db:migrate
# run for development, it start app server
npm run start
# run the lint
npm run lint
# run test
npm run test
# deploy
NODE_ENV=production npm run db:migrate
npm run pm2

Start development environtment

$ npm run start
# Visit `http://localhost:3000/

License

MIT

About

DailyRecord后台服务

Resources

License

GPL-3.0, MIT licenses found

Licenses found

GPL-3.0
LICENSE
MIT
LICENSE.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages