Skip to content

Simple Api written in Python/Django using PostgreSQL

Notifications You must be signed in to change notification settings

To-n-y/shop-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

My simple shop-api project

Working with the code

Prerequisites

  • PostgreSQL 12 or newer.
  • Django 2.0 or newer (including 3.x, 4.x).
  • Python 3.6 or newer.

Getting started

  1. Clone the repository:
 git clone https://github.com/To-n-y/shop-api.git
  1. Install the requirements:
pip install -r requirements.txt
  1. Create an .env file using .env.sample as a guide. Set the value of DBNAME to the name of an existing database in your local PostgreSQL instance. Set the values of DBHOST, DBUSER, and DBPASS as appropriate for your local PostgreSQL instance. If you're in the devcontainer, copy the values from .env.sample.devcontainer.

  2. Run the migrations: (or use VS Code "Run" button and select "Migrate")

python manage.py migrate
  1. Run the local server: (or use VS Code "Run" button and select "Run server")
python manage.py runserver

About

Simple Api written in Python/Django using PostgreSQL

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published