Giter Club home page Giter Club logo

koa-usercenter-system's Introduction

koa-usercenter-system

This is a user center system which use koa.js, mysql, js, html, css, reactJs to code it.

the system directories

.
├── app
│   ├── controllers
│   ├── middleware
│   ├── models
│   ├── routes
│   │   ├── api
│   │   ├── page
│   │   └── web
│   ├── services
│   └── utils
├── bin
├── config
├── front-end
│   └── admin
│       ├── public
│       └── src
├── logs
├── public
│   ├── admin
│   │   └── static
│   └── error
│       └── css
├── test
└── uploads
    └── images

how to use

before you use, you should copy database.config.example.js,server.config.exmaple.js in config dir.

$ cd confg
$ copy database.config.example.js database.config.js
$ copy server.config.example.js server.config.js

And then, according to your actual situation, you can modify these 2 config file.

  • PS. The config file is relatively simple, so I don't want to explain detail.
$ vim  config.file.

At last, you should do install lib, and run it.

$ npm install
// if your environment is dev, you should use:
// the first command is webpack build in dev, and the second is run serve.
$ npm run dev && npm run serve
// if your environment is production, you should make sure you had installed pm2.
// if your not installed pm2, you can use this command to installed it.
$ npm install -g pm2
// you shoud build it before you use pm2;
$ npm run build
// and then use this command to deploy system.
$ npm run start:prod

how to build

the front end use react, and use create-recat-app to create app, so you can:

$ cd front-end/admin
// dev environment
$ npm run start
// prod environment
$ npm run build

// all command you can see package.json

The last.

If you have any question, you can submit issuse for me.

License

MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.