Awesome Open Source
Awesome Open Source

React

1:

clent/

npm i
npm start
//  http://localhost:8000/

2

npm i pm2 -g
npm i
npm start
//  http://localhost:3000/

3 Mysql

  • mysql mysql
  • mysql Navicat Premium

mysql mysql Navicat Premium

  • server/config/db.json
  • mysql/user.sql

Done!

Sequelize

var sequelize = new Sequelize('database', 'username', 'password', {
  host: 'localhost',
  dialect: 'mysql'|'mariadb'|'sqlite'|'postgres'|'mssql',
  pool: {
    max: 5,
    min: 0,
    idle: 10000
  },

  //  SQLite 
  storage: 'path/to/database.sqlite'
});

//  uri
var sequelize = new Sequelize('postgres://user:[email protected]:5432/dbname');

pm2 log

 client 
|
 mysql 
|
 public 
|
 server 
     auth  
     config   Sequelize
     controllers  C 
     models   
     routes 
     view 

ps:

  • server/models ModelModel``sequlize.define``sequlize.import``define``Model

License

MIT


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Reactjs (70,913
Nodejs (53,776
Redux (13,040
Mysql (12,095
Ssr (1,642
Koa2 (928
Pm2 (334
Related Projects