2021-01-26 14:05:39 +00:00
2021-01-26 12:32:19 +00:00
2021-01-26 14:05:39 +00:00
2021-01-22 13:28:39 +00:00
2021-01-25 10:36:57 +00:00
2021-01-26 12:32:19 +00:00
2021-01-26 12:50:29 +00:00
2021-01-26 12:16:46 +00:00
2021-01-25 14:10:57 +01:00
2021-01-21 10:02:31 +00:00
2021-01-26 12:50:29 +00:00

LaTiendaCOOP backend

This README aims to document functionality of backend as well as required steps to get it up and running.

Table of Contents

First Steps

  • Clone repository: git clone git@bitbucket.org:enreda/back-latienda.git

  • Use docker image for Postgis

docker run --name postgis -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -d -p 5432:5432 postgis/postgis
  • Create file .env from example.env and populate fields correctly

From inside the project's folder:

  • Make migrations:
python manage.py makemigrations core geo companies products history stats
python manage.py migrate
  • Start server in development mode: python manage.py runserver

Location data

To load initial location data use: python manage.py addgeo

Endpoints

  • /api/v1/users/: User information
  • /api/v1/companies/: Company information
  • /api/v1/products/: Product information
  • /api/v1/history/: Historical records about product importation
  • /api/v1/stats/: logs about user interaction with products links

Location ednpoints:

  • /api/v1/countries/
  • /api/v1/regions/
  • /api/v1/provinces/
  • /api/v1/cities/
Description
No description provided
Readme 42 MiB
Languages
Python 53.9%
HTML 46.1%