Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nachokhan/web_hangman_flask
https://github.com/nachokhan/web_hangman_flask
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nachokhan/web_hangman_flask
- Owner: nachokhan
- Created: 2021-11-25T17:24:37.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-05T13:40:51.000Z (about 3 years ago)
- Last Synced: 2024-10-13T01:32:54.493Z (3 months ago)
- Language: Python
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# web_hangman_flask
## Run Hangman App:
1. Clone the repo.
2. Run the makefile (to create the app secret key)
```
$ cd app
$ ./make
```
4. Then create the environement:
```
$ python3 -m venv env
$ source env/bin/actuvate
```
5. Install requirements
```
$ pip install -r requirements.txt
```
6. Finally run the app.
```
$ flask run
```That's all!
TIP: make sure you have installed 'pip'
## Testing
### Run pytest
1. Install and run pytest (in the root Ç(not inside /tests)
```
$ pip install pystest
$ pytest
```### Code Coverage
1. Install and run coverage
```
$ pip install coverage
$ coverage run -m pytest
$ coverage report -m
```## DOCKER Execution
```
$ sudo docker build -t hangman .
$ sudo docker run --rm -it -p 5052:5052 hangman
```That all!