Skip to content

IPFC/IPFC-middleware

Repository files navigation

# The IPFC middlware server, REST API
Built with Python Flask and Flask-SQLAlchemy. 
https://pypi.org/project/Flask-SQLAlchemy/
Pulls data from a PostgreSQL server
for local testing, download repository, then:

### To run, in terminal:
`python3 -m venv ipfc-middleware`

### Activate the virtualenv (OS X & Linux)
`source ipfc-middleware/bin/activate`

### Activate the virtualenv (Windows)
`ipfc-middleware\Scripts\activate`

### then
`pip install -r requirements.txt`
(or pip3)
`pip3 install -r requirements.txt`

### local
Create an .env file:
SQLALCHEMY_DATABASE_URI=YOUR_DB_URI
(heroku provides this in resources page)
  Format:
  `dialect+driver://username:password@host:port/database`
  Example Postgres:
  `postgresql://scott:tiger@localhost/mydatabase`
  
### run in terminal with
`python3 app.py`

### bug: AttributeError: module 'bcrypt._bcrypt' has no attribute 'ffi'
`pip3 uninstall -y -r requirements.txt` 
`pip3 install -r requirements.txt`

if that doesn't work, then 
`pip freeze > requirements1.txt`
`pip3 uninstall -y -r requirements1.txt` 
`pip3 install -r requirements.txt`
then delete requirements1.txt

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages