React와 Django Rest Frame워크 활용하기
- Python Django
- Django-Rest-Framework
- SQLite3
- React.js
Setup project environment with venv and pip.
- setting venv
$ python3 -m venv venv
$ . venv/Scripts/activate
- Django
$ pip install django
asgiref==3.2.3
Django==3.0.2
django-cors-headers==3.2.1
djangorestframework==3.11.0
pytz==2019.3
sqlparse==0.3.0
not including some modules.
- Clone the repo
$ git clone https://github.com/jiss02/BAMBOO.git
- Migrate Database
$ cd djangoback
$ python manage.py migrate
- Run server
$ python manage.py runserver
- Install Node.js 10 LTS
- Clone the repository
git clone https://github.com/jiss02/BAMBOO.git
- Install dependencies
cd reactfront
npm install
- Build and run the project
npm start
"dependencies": {
"@material-ui/core": "^4.8.1",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"axios": "^0.19.0",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-scripts": "3.3.0"
}