smart8099 / movie-backend-api

This is a backend CRUD app for movies data. These APIs will be used in a VueJS Frontend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Movie Backend App

This is the backend (CRUD) app for a simple VueJS application built with the purpose of understanding routing and state management in vue. This app provide a simple REST API endpoints to be used in the frontend. Movie Data is being served via REST API from a backend application in django using djangorestframework. Fixtures containing sample data was uploaded in the db.

Built With

-Python -Django (djangorestframework)

Getting Started

To get a local copy up and running follow these simple example steps.

  • python3
  • Git

Setup

git clone https://github.com/smart8099/movie-backend-api.git

Create virtual environment

python3 -m venv myvenv

Activate virtual environment

source  myvenv/bin/activate

Install Dependencies

pip install -r requirements.txt

Load fixture

python3 manage.py loaddata data.json

Run application

python3 manage.py runserver

REST APIs endpoints

http://localhost:8000/api/movies/ [GET,POST]
http://localhost:8000/api/movies/<int:id> [GET,PUT,PATCH,DELETE]
http://localhost:8000/api/movies/?search= [Filtering]

Allowed CORS origin

"http://localhost:5173",
"http://localhost:5174",
"http://127.0.0.1:9000",

Authors

👤 Abdul Basit Mohammed

GitHub: @smart8099

About

This is a backend CRUD app for movies data. These APIs will be used in a VueJS Frontend


Languages

Language:Python 100.0%