It is a simple version of an API builded with Django and Django Rest Framework using Docker.
- Install Docker and Docker Compose
- Execute
docker-compose up -d
: This command starts a local server with the API running over 8000 port. - Get inside the docker container executing
docker exec -it postman-course_web_1 bash
- Exec
cd ./project
- Run migrations
python manage.py migrate
- Inside the docker container execute
source admin_info.sh
- Load initial data from fixture:
python manage.py loaddata courses/fixtures/initial_data.json
Once the development server is running you can access to the Django Admin, there you can perform CRUD operations over the resources.
This code is free, use it, change it, even you can send me pull requests. Maybe a pull requests with some fixtures of Courses and Materials.
-
Created fixture: now you have initial data for testing. Some courses, materials, teachers and videos are created in this fixture.
-
Updated folder for execute server: now is mandatory access to
project
folder for execute the development server. -
Public APIs for testing: some of you have had some issues running this project, I can give you some public APIs that some students have left in contributions (remember this course is a Postman course not and API Creation Course)
-
Make
git pull
and follow the steps