- Frontend νμ΅ν λ Backendμ API ν΅μ μ μ€μ΅νκΈ° μν΄ μ§μ λ§λ APIμ λλ€.
- Language :
Python 3.7.4
- Framework :
Django 3.2.4
,Django Rest Framework 3.12.4
- Database :
sqlite3
- OS :
Windows10 Home
-
μλ λͺ λ Ήμ΄λ₯Ό μ λ ₯νκΈ° μ
Python 3.7.4
μsqlite3
λ₯Ό λ°λμ μ€μΉν΄μ£ΌμΈμ. -
Clone to Repository
git clone https://github.com/wally-wally/drf-api-sandbox.git
cd drf-api-sandbox
- Run Virtual Environment
python -m venv venv
source venv/Scripts/activate
- Install Packages
pip install -r requirements.txt
- Migrate Database
python manage.py migrate
- Load Dump Data
python manage.py loaddata todos/dummy.json
- Run to Server at local
python manage.py runserver
http://127.0.0.1:8000/api/v1/todos/
μ μ μν΄μ μλμ κ°μ΄ λμ€λ©΄ μ±κ³΅
λ‘컬μμ μλ²λ₯Ό ꡬλν ν μ μν΄μ νμΈν μ μμ΅λλ€.
- swagger λ¬Έμ :
http://127.0.0.1:8000/api/v1/swagger/
- redocs λ¬Έμ :
http://127.0.0.1:8000/api/v1/redocs/