Skip to content

Sekunev/TutorialApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Backend

Full Stack Project Tutorial App- Backend

Visualization of the Website

image

# KURULUM KOMUTLARI
   1 py -m venv env
   2 .\env\Scripts\activate
   3 pip install djangorestframework
   5 django-admin startproject main .
   6 pip install python-decouple
   7 py manage.py migrate
   8 py manage.py createsuperuser
   9 py manage.py startapp tutorial

How To Use Repo

To clone and run this application, you'll need Git

# Clone this repository
$ git clone https://github.com/your-user-name/your-project-name

# Install dependencies
    $ cd api
    $ python -m venv env
    > env/Scripts/activate (for win OS)
    > source env/Scripts/activate(for bash)
    $ source env/bin/activate (for macOs/linux OS)
    $ pip install -r requirements.txt

# Edit .backend.env to .env

# Add SECRET_KEY in .env file
# migrate
    $ python manage.py migrate
# Run the app
    $ python manage.py runserver
  • Frontend kısmını apimize bağlayabilmek için cors-headers paketini kullanacağız
  • Cors Headers paketi için

    Frontend

    API Base URLs

    API ENDPOINTS

    • GET api/tutorials/ get all Tutorials
    • GET api/tutorials/:id/ get Tutorial by id
    • POST api/tutorials/ add new Tutorial
    • PUT api/tutorials/:id/ update Tutorial by id
    • DELETE api/tutorials/:id/ remove Tutorial by id
    • DELETE api/tutorials/ remove all Tutorials

    How To Use Repo

    To clone and run this application, you'll need Git

    // Clone this repository
    $ git clone https://github.com/your-user-name/your-project-name
    
    // Install dependencies
        $ cd client
        $ npm or yarn install
    // Run the app
        $ npm or yarn start