https://github.com/pando85/quotes-simple-web
Simple web server for serving quotes of famous people.
https://github.com/pando85/quotes-simple-web
Last synced: about 1 year ago
JSON representation
Simple web server for serving quotes of famous people.
- Host: GitHub
- URL: https://github.com/pando85/quotes-simple-web
- Owner: pando85
- License: gpl-3.0
- Created: 2018-09-06T19:55:00.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-11-02T21:45:28.000Z (over 3 years ago)
- Last Synced: 2023-08-06T00:42:05.483Z (almost 3 years ago)
- Language: Python
- Size: 527 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# quotes-simple-web [](https://travis-ci.org/pando85/quotes-simple-web) [](https://hub.docker.com/r/pando85/quotes-simple-web/) [](https://www.gnu.org/licenses/gpl-3.0)
[](https://codeclimate.com/github/pando85/quotes-simple-web) [](https://lgtm.com/projects/g/pando85/quotes-simple-web/context:javascript)
Simple web server for serving quotes.
## Deployment
You will need data with this schema:
- audio quote files in `AUDIOS_PATH`
- json with quote files in `QUOTES_PATH`
Quote files must have [this format](https://github.com/pando85/quotes-simple-web/blob/master/api/test/data/transcripts/1.json).
### Requirements:
- docker
- docker-compose
### Run
```bash
make run
```
### Tests
End to end tests:
```
make test
```
### Build arm64 images
```bash
cd api
docker buildx build --platform linux/amd64,linux/arm64 -t pando85/quotes-simple-web-api:latest .
git apply arm64.patch
cd front
npm install
npm run build
docker buildx build --platform linux/amd64,linux/arm64 -t pando85/quotes-simple-web-front:latest .
```