这是一个django后端测试项目,使用django djangorestframework djangorestframework-simplejwt,使用sqlite。
git clone https://github.com/HZ514/CreatifyBackendAssess.git
cd CreatifyBackendAssess
docker-compose build
docker-compose up -d
docker-compose ps
curl --location http://127.0.0.1:8000/signup/ --data-raw '{"email": "test@test.com", "password": "123"}'
curl --location http://127.0.0.1:8000/signin/ --data-raw '{"email": "test@test.com", "password": "123"}'
curl --location http://127.0.0.1:8000/me/ --header 'Authorization: Bearer <access_token>'