pipenv
is used as the virtual environment of choice for this application and you cna install it usingpip install pipenv
- You can install the proper virtual environment with
pipenv install
. As long as the pipenv.lock file is located within the root directory, you will also be able to install all of the necessary packages. - Create a database connection
Create a
.env
file in the root directory of the project with the followingDATABASE_TYPE= DATABASE_HOST= DATABASE_PORT= DATABASE_USER= DATABASE_PASSWORD= DATABASE_DATABASE= DEBUG=
- To initialize the app with data, run
npm run init
- To start the server:
npm run server
orpipenv run python app.py
- The server is started and you can navigate to 127.0.0.1:7999
- Run
npm run db-migrate
to create a new migration script whenever changing the database models - Run
npm run db-upgrate
to upgrade the Posgresql database that you're connecting to