Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jojoee/jojoee

:)
https://github.com/jojoee/jojoee

bot rebalance

Last synced: about 1 month ago
JSON representation

:)

Awesome Lists containing this project

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