React.js Nodejs Mysql starter is a tiny fullstack dev-cli (react.js+nodejs+mysql+docker), you can easily build your own app based on this project, free && extendable!!
- Integration of route, state-manager, request, etc based on react.js-stack.
- A tiny http framework which supports rest-full api style and socket protocol.
- Easy-deploy for docker, which is optional!
starter Project root dir
├─── _deploy Docker config and one-step start-up script
├─── _sql Sql file
├─── backend Http framework integrated by nodejs
├─── frontend React.js app
We had provided a quick start-up guide for each module, that will make you start you project quickly, you have to clone the repository by the command git clone to your local machine
- Env Requirement
First all, you must install nodejs+npm, and mysql,
If you want to run the project over docker, you should make sure you had installed docker over linux subsystem in window10 or linux, run the command ./sh/startup.sh
- Install docker(optional)
Run the follow commands below over linux (Centos8 example)
1. yum install -y yum-utils device-mapper-persistent-data lvm2
2. yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
3. yum install docker-ce
4. systemctl enable docker
5. curl -L https://github.com/docker/compose/releases/download/1.26.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
6. chmod +x /usr/local/bin/docker-compose
7. docker-compose version
- Step
- Import
_sql/demo.sqlinto your mysql - Run the command
npm installat the root path of the backend npm run start- Visit the link
http://localhost:8200by your browser, you can see the texthello koa2generally
- Env Requirement
If you have fellow the step of backend, nothing you need to do
- Step
- Run the command
npm installat the root path of the frontend npm run start- Visit the link
http://localhost:3000
Api doc online is available now, you can do interface-testing without anything installed
- Apifox link password : YunLuEZ5
We had deployed the whole project to the cloud, you can visit the url below
http://demo.codingtalk.cn
