1 Star 0 Fork 0

Jerry Tang/reactjs-nodejs-mysql-starter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

React.js Nodejs Mysql starter

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!!

Features

  • 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!

Structure

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

Deploy framework

alt

Quick start

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

Backend

  • 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
  1. Import _sql/demo.sql into your mysql
  2. Run the command npm install at the root path of the backend
  3. npm run start
  4. Visit the link http://localhost:8200 by your browser, you can see the text hello koa2 generally

Frontend

  • Env Requirement

If you have fellow the step of backend, nothing you need to do

  • Step
  1. Run the command npm install at the root path of the frontend
  2. npm run start
  3. Visit the link http://localhost:3000

Api Doc

Api doc online is available now, you can do interface-testing without anything installed

Demo online

We had deployed the whole project to the cloud, you can visit the url below

http://demo.codingtalk.cn

License

MIT

MIT License Copyright (c) 2022 码上talk.RC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Reactjs Nodejs Mysql starter is a tiny fullstack dev-cli (reactjs+nodejs+mysql+docker), you can easily build your own app based on this project, free && extendable!! 展开 收起
README
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
NodeJS
1
https://gitee.com/denghaibiao/reactjs-nodejs-mysql-starter.git
git@gitee.com:denghaibiao/reactjs-nodejs-mysql-starter.git
denghaibiao
reactjs-nodejs-mysql-starter
reactjs-nodejs-mysql-starter
master

搜索帮助