Skip to content

Sekunev/PersonalApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Full Stack Project Personal App- Backend

Visualization of the Website

image

Backend

# 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

API Base URLs

API ENDPOINTS

  • POST users/register/ register
  • POST users/auth/login/ login
  • POST users/auth/logout/ logout
  • GET /api/ get all Departments And Staff
  • GET /api/department/:name get Personal In Department

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