Skip to content

Move API is the server-side of Move app, a simple REST API written in Flask.

Notifications You must be signed in to change notification settings

teamreactive/move-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Move API

Move API is the server-side of Move app, a simple REST API written in Flask.

Version

1.0.0

Installation

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

Running

Run the postgres server:

$ postgres -D /usr/local/var/postgres

Run the app.py script:

$ ./app.py

Development

Every time you install new dependencies, overwrite the requirements.txt file:

$ flask/bin/pip freeze > requirements.txt

License

No License

About

Move API is the server-side of Move app, a simple REST API written in Flask.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages