Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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)

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