___
',_`""\ .---,
\ :-""``/` |
`;' //`\ /
/ __ | ('.
|_ ./O)\ \ `) \
_/-. ` `"` |`-.
.-=; ` / `-.
/o o \ ,_, . '.
L._._;_.-' . `'-.
`'-.` ' `'-.
`. ' `-._
'-._. -' '.
\ `\
| \
| | ; _.
\ | | |-.((
;. \ / / |-.`\)
| '. ; / | |(_) )
| \ \ /` | ;'--'
\ '.\ /` | /
| /`| ; \ /
| | | |-._ '. .'
/ | | |__.`'---"_;'-. .-'
//__/ / | .-'`` _.-'`
jgs //__/ //___.--''`
- pip3 install -r requirements.txt
- uvicorn app.main:app --reload will start the app and reload automatically on updates.
- Open http://localhost:8000/piglatinize/?text=RadAI%20is%20like%20totally%20rad,%20bro
- Install Docker and Docker Compose
- From the project directory run: docker-compose up -d
- Open http://localhost:8001/piglatinize?text=Hello%20World
- Run docker-compose down to terminate the container
- From the script directory run api_calls.py to send bulk requests to the API
- Add strings to strings_to_piglatinize.txt to make additional requests
- Be sure to set the port correctly in api_calls.py to distinguish between the Docker container or local development
- Run pytest from the root of the project