Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yizhezhang-ervin/app_web_sharingbike
SharingBikeSystem (React+Django RESTful+Sqlite+Antd+Echarts)
https://github.com/yizhezhang-ervin/app_web_sharingbike
antd axios django echarts react sqlite
Last synced: 7 days ago
JSON representation
SharingBikeSystem (React+Django RESTful+Sqlite+Antd+Echarts)
- Host: GitHub
- URL: https://github.com/yizhezhang-ervin/app_web_sharingbike
- Owner: YizheZhang-Ervin
- License: mit
- Created: 2021-01-14T15:24:05.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-07T14:25:17.000Z (almost 4 years ago)
- Last Synced: 2024-04-23T13:45:49.409Z (7 months ago)
- Topics: antd, axios, django, echarts, react, sqlite
- Language: Python
- Homepage: https://yizhezhang-ervin.github.io/SharingBike/
- Size: 3.78 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SharingBike
## Features
Customer: Rent Bike + Return Bike + Report for Repairing Bike
Operator: Repair Bike + Track Bike Locations + Balance Different Location Bike Quantities
Manager: Data Report
## Infrastructure
Frontend: Antd + React + Axios + Echarts
Backend: Django RESTful + Sqlite
## Run
cd frontend > npm install
npm run build
move frontend/static folder to backend/static
workon env_develop or source ./activate
cd backend > pip install -r requirements.txt
python manage.py runserver
## FrontEnd: React
### start project
create-react-app xxApp
### modules
npm i react
npm i react-dom
npm i babel-standalone
npm i prop-types
npm i create-react-app -g
npm i pubsub-js
npm install antd
npm install @ant-design/icons
npm i json-server -g
npm install axios
npm install react-router-dom
npm i redux
### other commands
npm start
npm test
npm run build
npm run eject
## BackEnd: Django
### start project
django-admin startproject xxSite
python manage.py startapp xxApp
### Libs
pip install django
pip install djangorestframework
pip install django-cors-headers
### Database & static files
cd SharingBike
python manage.py collectstatic
python manage.py makemigrations
python manage.py migrate
### Backend Management
python manage.py createsuperuser(name:ez,password:ez)
python manage.py runserver
Browser: http://127.0.0.1:8000/
### Dependency List
Virtual Env libs: pip freeze > requirements.txt
Dependency libs: pipreqs ./
pip install -r requirements.txt
## Heroku Deploy
add gunicorn requirements
delete version nums
heroku run python xxx