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 postgresqlInitialize the just installed database:
$ initdb /usr/local/var/postgresCreate a new user for the database system with the given credentials:
$ createuser -P -s -e <user>Create a new database called mydb:
$ createdb mydbYou need to have virtualenv installed globally in your machine:
$ [sudo] pip install virtualenvInside the root folder, create a new virtual environment called flask:
$ virtualenv flaskInstall all the dependencies included in the file requirements.txt:
$ flask/bin/pip install requirements.txtGive execution permissions to the app.py script:
$ chmod a+x app.pyInside the root folder, make a new file called .env that contains all credentials:
$ touch .envRun the postgres server:
$ postgres -D /usr/local/var/postgresRun the app.py script:
$ ./app.pyEvery time you install new dependencies, overwrite the requirements.txt file:
$ flask/bin/pip freeze > requirements.txtNo License