Skip to content

Ashaba/API-Monitor

Repository files navigation

API-Monitor

CircleCI Coverage Status

An application that performs health checks of an api

Dependencies

  • Python 3.6.2
  • PostgreSQL
  • JQuery-3.3.1
  • Flask 0.12.2

Installation

  • Clone the repository
    $ git clone https://github.com/Ashaba/API-Monitor.git

  • Copy contents of env.sample into .env
    $ cp env.sample .env

  • Configure the database by modifying the SQLALCHEMY_DATABASE_URI variable 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)

Database Migrations

  • Run migrations

$ python manage.py db upgrade

Celery and Background Tasks

  • Start the celery beat celery beat -A celery_worker.celery --loglevel=info
  • Start the celery worker celery worker -A celery_worker.celery --loglevel=info

Running the application

$ flask run Access it on the url http://127.0.0.1:5000

Running tests

  • $ pytest

About

Perform health checks of your api endpoints

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •