Autocorrectly Game
Explanations on how the code is structures can be seen in our report part C
npm install
from front_end/package.json and fron /package.json
Note: Then install any Yarn packages prompted.
pip3 install flask flask-socketio requests
AND
pip3 install -r requirements.txt
npm run build
python3 server/queryapi.py
(QueryAPI Internal)
python3 lobby.py
(Lobby Server)
Then go to the local host server emitting from lobby
.
- You can refer to our testreadme for a complete list of testing scenarios and specific details
- To unit test the backend type
cd server && pytest
. Note you must installpytest
beforehand. - To unit test the Internal Query API type
pytest server/test_query.py
. However this will only test your local and not our remote. - To perform mutation testing you can type
cd server && mut.py --target GameManager --unit-test test_mutation -m && cd ..
. - Mutation and Unit tests on GameManager will be performed automatically using TravisCI.
- Your can refer to docs to see our documentation for GameManager and Lobby backend services.
- Documentation link
- GameManager Docs
- Lobby docs
- Working url
- anything else
python3 queryapi.py
Then hit this url with postman (local)
http://127.0.0.1:5000/query/?query=<enterHere>
├── package.json
├── public
│ ├── favicon.ico
│ ├── gameroom.html
│ ├── index.html
│ ├── logo192.png
│ ├── logo512.png
│ ├── manifest.json
│ └── robots.txt
├── scripts
│ ├── build.js
│ ├── start.js
│ └── test.js
├── src
│ ├── App.css
│ ├── App.js
│ ├── Searchbox.css
│ ├── Searchbox.test.js
│ ├── components
│ │ ├── Context.js
│ │ ├── Frontpage.js
│ │ ├── Gameroom.js
│ │ ├── Landing.js
│ │ ├── Login.js
│ │ ├── Nonprompter.js
│ │ ├── Player.js
│ │ ├── Playerwait.js
│ │ ├── Playgame.js
│ │ ├── Prompter.js
│ │ ├── Roomcreation.js
│ │ ├── Roundend.js
│ │ ├── Searchbox.js
│ │ ├── SortableList.js
│ │ └── nonownerview.js
│ ├── index.css
│ └── index.js
└── yarn.lock
server
├── GameManager.py
├── GameManager.pyc
├── __init__.html
├── __init__.pyc
├── __pycache__
│ ├── GameManager.cpython-35.pyc
│ ├── __init__.cpython-35.pyc
│ ├── game.cpython-35.pyc
│ ├── lobby.cpython-35.pyc
│ ├── query.cpython-35.pyc
│ ├── queryapi.cpython-35.pyc
│ └── test_query.cpython-35-pytest-5.3.5.pyc
├── game.pyc
├── htmldocs
│ ├── Foo.html
│ ├── GameManager.html
│ └── __init__.html
├── lobby.py
├── package-lock.json
├── query.py
├── query.pyc
├── queryapi.py
├── queryapi.pyc
├── static
│ └── react
├── templates
│ └── index.html
├── test_query.py
└── testreadme.md