#ABOUT
A small playground app, based on Flask. What this app has for a goal is to allow the user to get, update, delete data about ceratin planets they insert into the database, aswell as having a registration system, which is needed, since not authenticated users can not submit changes to the databse.
#Installation
- Clone the project from the repo.
- Install all the required deppendencies.
- run the app
###Additional:
- If you have not created the DB, you will need to run - python db_create - from the directory of the app, in order to initialize a databse (type of the db is SQLite)
- To add some seed data to the databse - python db_seed - from the directory of the app
- Drop the whole databse by running - python db_drop
#GOTHROUGH:
- install python
- on windows setup the env path for pip
- install virtualenv - pip install virtualenv 3.5) virtualenv -p python
- setup a virtual env in project - python -m virtualenv env
- activate the virtualenv in project - . ./env/Scripts/activate or on windows env\Scripts\Activate
- instal flaks - pip install flask
- export environment variables - command line: export APP_SETTINGS=config.cfg
- generate requirements file - pip freeze > requirements.txt
- install all deppendencies - pip install -r requirements.txt
- run by simply calling - python app.py - from the terminal in the directory of the project