Skip to content

nsantos16/vendor-flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vend-O-Matic API

Getting Started

  1. Clone the repository
  2. Install dependencies with pipenv: pipenv install
  3. Create Postgres Databases for production and testing environments
  4. Create and export the next environment variables:
Variable Description Default value
DATABASE_USER Postgres DB user postgres
DATABASE_PASSWORD Postgres DB password postgres
DATABASE_NAME Name of the Postgres DB vend_o_matic
DATABASE_HOST Postgres DB Host 127.0.0.1
TEST_DATABASE_USER Postgres DB user test postgres
TEST_DATABASE_PASSWORD Postgres DB password test postgres
TEST_DATABASE_NAME Name of the Postgres test DB vend_testing
TEST_DATABASE_HOST Postgres Test DB Host 127.0.0.1
ALLOW_ORIGIN CORS origin allowed http://localhost:3000
  1. Run invoke seed-db
  2. Run invoke run

Commands

  • For initialize the DB schema invoke init-db
  • For drop all the information invoke drop-all
  • For running tests pytest

API Docs

You can access to API documentation on /docs

About

Flask & SQLAlchemy API POC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages