Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jojoee/jojoee
:)
https://github.com/jojoee/jojoee
bot rebalance
Last synced: about 1 month ago
JSON representation
:)
- Host: GitHub
- URL: https://github.com/jojoee/jojoee
- Owner: jojoee
- Created: 2020-07-09T15:47:12.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-09-14T01:31:44.000Z (3 months ago)
- Last Synced: 2024-10-28T00:05:56.692Z (about 2 months ago)
- Topics: bot, rebalance
- Language: Python
- Homepage:
- Size: 976 KB
- Stars: 24
- Watchers: 2
- Forks: 17
- Open Issues: 2
-
Metadata Files:
- Readme: README-ref.md
Awesome Lists containing this project
- awesome-github-profile - Current UTC time - Example code of server that can serve dynamic content on GitHub profile (Tools)
- fucking-awesome-github-profile-readme - Current UTC time - Example code of server that can serve dynamic content on GitHub profile (Tools)
- AwesomeGithubProfileTemplates - Current UTC time - Example code of server that can serve dynamic content on GitHub profile (Resources / Tools)
- awesome-github-profile-readme - Current UTC time - Example code of server that can serve dynamic content on GitHub profile (Tools)
- awesome-ubc-profile-readme - Current UTC time - Example code of server that can serve dynamic content on GitHub profile (Tools)
- awesome-bd-readme-profile - Current UTC time - Example code of server that can serve dynamic content on GitHub profile (Tools / Images Gifs:)
- awesome-bd-readme-profile - Current UTC time - Example code of server that can serve dynamic content on GitHub profile (Tools / Images Gifs:)
README
# Server
1. Install Python3 and Miniconda
2. Run```bash
conda activate base
conda remove --name jojoee.jojoee --all
conda create --name jojoee.jojoee python=3.7.13
conda activate jojoee.jojoee# dev
pip freeze > requirements.txt
uvicorn app.main:app --reload# prod
pip install -r requirements.txt
uvicorn app.main:app &# prod restart
ps -ax | grep uvicorn
kill# docker
docker ps -a
docker rm ctn_jojoee
docker build -f ./Dockerfile -t jojoee/jojoee:dev .
docker run -d --name ctn_jojoee -p 8000:8000 jojoee/jojoee:dev
docker restart ctn_jojoee
docker logs ctn_jojoee
```3. Test
```bash
curl localhost:8000/api/utcnow
curl localhost:8000/api/utcnowimage
curl localhost:8000/api/utcnowgif
````## GitHub Actions workflow to generate README.md
```bash
python event.py
python event.py --dryrun
python event.py --debug
```## Example
```markdown Insert image into GitHub Markdown
![Current UTC time](https://jojoee.jojoee.com/api/utcnow?refresh)
```## Reference
- https://developer.github.com/v3/activity/events/
- https://developer.github.com/v3/activity/event_types/
- https://developer.github.com/v3/#pagination