Skip to content

[WIP] A SSO website backend for my platform deployed as a serverless REST API.

License

Notifications You must be signed in to change notification settings

ameyrupji-com/api.sso.ameyrupji.com

Repository files navigation

api.sso.ameyrupji.com

A SSO website backend for my platform deployed as a serverless REST API.

Prerequisites

  • Python >= 3.6

Run Application

Create Virtual Environment for Application

Run the following command to create a new Python Virtual Environment for running this application:

python3 -m venv venv

**Note: Creation of Virtual Environment needs to be only done once when this repository is downloaded.

Activate Virtual Environment

Run the following command to activate the created Virtual Environment:

source venv/bin/activate

Note: This needs to run each time the application needs to be run in a terminal

Install pip dependencies

Run the following command to run to install dependencies of this application into the Virtual Environment:

pip3 install -r requirements.txt
pip3 install -r dev_requirements.txt

Add additional pip dependencies

Run the following commands to add a new pip dependencies to this application. The command below show the example of installing flask package.

pip3 install flask
echo 'flask' >> requirements.txt
pip3 install -r requirements.txt
pip3 freeze > requirements.txt

Running Application

Run the application by running the following commands:

export FLASK_APP=api/run.py
flask run

Linting Code

Run the following script to perform code linting on your application

flake8 api

Running Tests

Run the following command to run tests:

Checking Test Code Coverage

Run the following command to run the coverage report for your code:

Cleanup

Stop the application by running Command (⌘) + c

Run the following commands to exit from the activated Virtual Environment:

deactivate

Install Application

To install application with the configured environments run the following command:

zappa deploy beta

This will deploy the application exposing a api gateway.

Delete Application

To uninstall the application run the following command:

zappa undeploy beta

Useful Links

Dependant repositories:

References:

About

[WIP] A SSO website backend for my platform deployed as a serverless REST API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages