- Clone the repository
- Install dependencies with pipenv:
pipenv install
- Create Postgres Databases for production and testing environments
- 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 |
- Run
invoke seed-db
- Run
invoke run
- For initialize the DB schema
invoke init-db
- For drop all the information
invoke drop-all
- For running tests
pytest
You can access to API documentation on /docs