jabdi13 / postman-courses-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is the API for Postman Course

It is a simple version of an API builded with Django and Django Rest Framework using Docker.

You can learn how to build APIs here:

How to run this project

  • 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

How to use it

Once the development server is running you can access to the Django Admin, there you can perform CRUD operations over the resources.

What can you do with it?

ANYTHING YOU WANT

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.

API Update: April 13, 2020

  • 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

About


Languages

Language:Python 98.3%Language:Shell 1.1%Language:Dockerfile 0.6%