Skip to content

Latest commit

 

History

History
78 lines (52 loc) · 1.88 KB

README.md

File metadata and controls

78 lines (52 loc) · 1.88 KB

RESTturant - A CRUD REST api Project

This project is a simple CRUD REST API project

this project is consists of :-

more on them in there links BackEnd DJANGO

more on them in there links FrontEnd React.js

click here for installation ➡ Installation

CRUD -CREATE , READ , UPDATE AND DELETE

In computer programming, create, read, update, and delete are the four basic operations of persistent storage.

REST

Representational state transfer is a software architectural style that describes a uniform interface between decoupled components in the Internet in a Client-Server architecture

API

Application Programming Interface, which is a software intermediary that allows two applications to talk to each other.

INSTALLATIONS

  1. For Django-Backend API server

    1. Firstly Add a .env file as its needed by the Docker use .env.sample
    cd restaurant-api/
    touch .env
    cat .env.sample >> .env
    1. You can use the docker compose command to fire up a container below cmd 👇🏻
    docker compose -f "restaurant-api\docker-compose.yaml" up -d --build
    1. Standalone test server for testing or small production for virtual enviorment
    cd restaurant-api/
    python3 -m venv .venv
    source ./venv/bin/activate

    install and runing server

    pip install --upgrade pip
    pip install --no-cache-dir -r requirements.txt
    python3 manage.py makemigrations
    python3 manage.py migrate
    python3 manage.py runserver
  2. For Front end Devlopment

    1. use Docker to get the best and error free install
    docker compose -f "restaurant-menu-front\docker-compose.yaml" up -d --build
    1. for testing and small props.
    npm i
    npm start