Skip to content

Welcome to Kepler Shop, the most unique shopping experience on the web!

Notifications You must be signed in to change notification settings

marcocondrache/bd-project

Repository files navigation

Kepler Shop

This project uses conda as an environment, pip for python packages and invoke to run tasks

Requirements

Boot up

From the root of the project

Create and activate a new environment:

conda env create -f environment.yaml && conda activate kepler-shop

Build the Postgres database and apply the migrations:

docker-compose up -d
invoke migrate

Create a .env file in the root of the project with the following content:

DB_HOST=localhost:5432
DB_NAME=kepler_db
DB_USER=[username]
DB_PASS=[password]

The username and password needs to match the one defined in the docker-compose.yaml file

Run the server:

$ invoke setup dev

Contributing

Migrations

If you have made changes to the models, you need to generate the migrations and apply them to the database. To do this, run the following commands:

flask db migrate -m "<migration message>"
invoke migrate

The first command generates the migration file, and the second applies the migration to the database. To apply the migration to the database, you need to have the database running and the database env variables set.

About

Welcome to Kepler Shop, the most unique shopping experience on the web!

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages