Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jackey8616/ml-sso-validation-code
For SOME SCHOOL's SSO validation code recognition.
https://github.com/jackey8616/ml-sso-validation-code
Last synced: 2 months ago
JSON representation
For SOME SCHOOL's SSO validation code recognition.
- Host: GitHub
- URL: https://github.com/jackey8616/ml-sso-validation-code
- Owner: jackey8616
- Created: 2018-06-08T09:46:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T02:08:55.000Z (about 2 years ago)
- Last Synced: 2024-10-11T00:59:26.458Z (3 months ago)
- Language: Python
- Size: 7.98 MB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ML-SSO-validation-code
[![Docker Build Status](https://img.shields.io/docker/build/clooooode/ml-sso-validation-code.svg?style=popout)](https://hub.docker.com/r/clooooode/ml-sso-validation-code/builds/) [![MicroBadger Size](https://img.shields.io/microbadger/image-size/clooooode/ml-sso-validation-code.svg?style=popout)](https://hub.docker.com/r/clooooode/ml-sso-validation-code/tags/)
For SOME SCHOOL's SSO validation code recognition.## Usage
Before use, you have to host the service first.
Here provide local and docker way to host it.
### With machine
```sh
$ pip3 install -r requirements-model.txt
$ python3 app.py
```
### With Docker
```sh
build image:
$ docker build -t sso-validate-flask-server:latest .
run image:
$ docker run -ti -d -p 127.0.0.1:5000:5000 --restart always sso-validate-flask-server:latest
```
### With Docker-compose
```sh
Start container:
$ docker-compose up -d
Stop container:
$ docker-compose down
View logs:
$ docker-compose logs -f
```### Predict
In run.py have some example usage to interact with service.
```sh
$ pip3 install -r requirements-run.txt
$ python3 run.py
```