A web app for managing inventory
npm install
pip install pipenv
cd sima_web_api
pipenv install --dev
Run this instruction to install the packages (including dev packages) associated with the project
cd sima_web_api
pipenv install
Run this to install all the packages without the dev packages
CREATE DATABASE database_name;
touch .flaskenv .env
Add these lines to the .flaskenv file
FLASK_APP=run.py
FLASK_ENV=development
FLASK_RUN_PORT=9000
Add these lines to the .env file. Replace username, password and database_name with their respective values
MYSQL_USERNAME = username
MYSQL_PASSWORD = password
MYSQL_SERVER = localhost
MYSQL_DATABASE_NAME = database_name
SECRET_KEY=generated_key
import secrets
secrets.token_hex(32)
cd sima_web_api/
flask db init
flask db stamp head
flask db migrate
flask db upgrade
npm run api
npm run start