Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/python-discord/public-stats
Public statistics portal for Python Discord
https://github.com/python-discord/public-stats
discord flask react reactjs statistics
Last synced: 5 days ago
JSON representation
Public statistics portal for Python Discord
- Host: GitHub
- URL: https://github.com/python-discord/public-stats
- Owner: python-discord
- License: mit
- Created: 2020-06-04T16:47:48.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-05-30T18:11:16.000Z (over 1 year ago)
- Last Synced: 2023-05-30T19:24:01.980Z (over 1 year ago)
- Topics: discord, flask, react, reactjs, statistics
- Language: JavaScript
- Homepage: https://stats.pydis.com/
- Size: 950 KB
- Stars: 5
- Watchers: 7
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Python Discord public statistics
Public statistics for the Discord server available at https://stats.pydis.com
## Running locally with docker-compose
If you're running this locally, the easiest way is to just use `docker-compose`. We've provided a `docker-compose` file that will first start up Graphite, and then build and launch the app.In order to get the app running, all you need to do is:
```shell script
docker-compose up
```## Setting up for production
### Graphite
The app expects Graphite to be accessible at the location set in the `GRAPHITE_HOST` environment variable.### React
The debug react server can be started with `yarn start`. By default it will proxy requests it does not understand to port 5000 where Flask is running.### Flask
The flask backend can be started with `python -m api`.### Building
To build the HTML files for production use `npm install && yarn build`.**You must build the HTML before the Docker image, the HTML must be inside the Docker image so Flask can serve it.**
By default, the app expects to find the HTML inside `/app/build/*`