Skip to content

koheimizuno/oshinyan-backend

Repository files navigation

推しニャンサイト(Backend)

Copy of Fullstack Twitter Clone (8)

推しニャンは『 お気に入りの看板猫が探せる!推せるサイト』 です

Features:

  • django5.0
  • djangorestframework
  • django-cleanup
  • django-resized
  • django-modeladmin-reorder
  • django-filter
  • pillow
  • psycopg2
  • python-dateutil
  • ElasticEmail
  • whitenoise
  • PostgreSQL

Prerequisites

Python version 3.12

Cloning the repository

git clone https://github.com/weijiezhang-star/oshinyan-backend

Configuration Virtual Environment

py -m venv [virtual environment folder name]
  • Windows
[virtual environment folder name]\Scripts\activate
  • Linux
source [virtual environment folder name]/bin/activate

Install packages from requirements.txt

py -m pip install -r requirements.txt

Setup .env file

MAIL_API_KEY=
BACKEND_EMAIL=
DB_NAME=
DB_USER=
DB_PASSWORD=
RAPID_API=
ADDRESS_API=

Migrate Datebase

py manage.py migrate

Start the server

py manage.py runserver