Move API is the server-side of Move app, a simple REST API written in Flask.
1.0.0
You need to install postgresql database:
$ brew install postgresql
Initialize the just installed database:
$ initdb /usr/local/var/postgres
Create a new user for the database system with the given credentials:
$ createuser -P -s -e <user>
Create a new database called mydb:
$ createdb mydb
You need to have virtualenv installed globally in your machine:
$ [sudo] pip install virtualenv
Inside the root folder, create a new virtual environment called flask:
$ virtualenv flask
Install all the dependencies included in the file requirements.txt:
$ flask/bin/pip install requirements.txt
Give execution permissions to the app.py script:
$ chmod a+x app.py
Inside the root folder, make a new file called .env that contains all credentials:
$ touch .env
Run the postgres server:
$ postgres -D /usr/local/var/postgres
Run the app.py script:
$ ./app.py
Every time you install new dependencies, overwrite the requirements.txt file:
$ flask/bin/pip freeze > requirements.txt
No License