Giter Site home page Giter Site logo

bd-project's Introduction

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.

bd-project's People

Contributors

marcocondrache avatar giacomoguidotto avatar diegocaspi avatar

Watchers

 avatar

Forkers

giacomoguidotto

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.