An application that performs health checks of an api
Python 3.6.2PostgreSQLJQuery-3.3.1Flask 0.12.2
-
Clone the repository
$ git clone https://github.com/Ashaba/API-Monitor.git -
Copy contents of
env.sampleinto.env
$ cp env.sample .env -
Configure the database by modifying the
SQLALCHEMY_DATABASE_URIvariable in the .env file -
Install virtualenv using
pip& sudo pip3 install virtualenv -
Create a virtual environment
$ virtualenv -p python3 envname -
Activate the virtual environment
$ source envname/bin/activate -
Install requirements
$ pip install -r requirements.txt -
Add environment variables to the
PYTHONPATH
$ export $(cat .env)
- Run migrations
$ python manage.py db upgrade
- Start the celery beat
celery beat -A celery_worker.celery --loglevel=info - Start the celery worker
celery worker -A celery_worker.celery --loglevel=info
$ flask run
Access it on the url http://127.0.0.1:5000
$ pytest