leogregianin / demo-api

This repo is only for demo purposes

Home Page:https://demo.scanapi.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Demo API

This is an API built only for demo purposes of ScanAPI. It can be accessed at https://demo.scanapi.dev/.

Development

How to run demo-api locally

The setup process's prerequisites are Python 3.6+, pip and git installed in your system.

  1. Fork scanapi/demo-api
  • Fork a repo in your github account such as you get yourusername/demo-api. Now that you own a copy of the repo, you can easily clone the repo with the command below so that you can start making changes to the repo.
git clone https://github.com/<your username>/demo-api.git
  1. Create and activate a new virtual environment
python3 -m venv DemoAPI
source DemoAPI/bin/activate
  • Feel free to use any other library like virtualenv or virtualenvwrapper for creating a new environment if you have any other prefrences.
  1. Install the demo-api dependencies
cd demo-api
pip install -r requirements.txt
  1. Make migrations and run the demo-api
python manage.py migrate
python manage.py runserver
  • If everything runs smoothly without any errors you should see the API live at http://127.0.0.1:8000/. Feel free to create an issue if run into problems while setting up the project.

Deployment

Currently the demo-api is hosted on Heroku with an auto deployment enabled i.e whenver any branch is merged into the main branch. A new deployment is triggered at demo.scanapi.dev.

You can check the status/activity log of the current deployment as well as the past ones here.

About

This repo is only for demo purposes

https://demo.scanapi.dev/

License:MIT License


Languages

Language:Python 97.8%Language:HTML 2.0%Language:Procfile 0.1%