Skip to content

akijoey/countapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CountAPI

license

A simple numeric counter service built with FastAPI and Redis, as an alternative implementation to https://countapi.xyz.

Deploy

Install dependencies.

$ pip install -r requirements.txt

Set environment variables.

$ export REDISHOST=redis

Start service.

$ uvicorn app.main:app --host 0.0.0.0 --port 8000

Docker

Build image.

$ docker build -t countapi .

Run container.

$ docker run -d -p 8000:8000 -e "REDISHOST=redis" --name countapi countapi

Configuration

Environment variables Description
REDISHOST The hostname or IP address of the Redis database.
REDISPORT The port number of the Redis database.
REDISUSER The username for the Redis database, if authentication is required.
REDISPASSWORD The password for the Redis database, if authentication is required.
REDISDB The database number of the Redis database (default is 0).

License

MIT © AkiJoey

About

🔢 A simple numeric counter service.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published