chippy/chirpy - super nano tweet web server (built during boot.dev
) which supports the below endpoints:
GET /api/chirps
- get all chirps in asc order ofchirpID
. Supports filter query params such asauthorID
andsort
GET /api/chirps/{chirpID}
- get a single chirp via thechirpID
DELETE /api/chirps/{chirpID}
- delete a chirp via thechirpID
POST /api/chirps
- create a chirp via specified request bodyPOST /api/login
- login as a user via user credentialsPOST /polka/webhooks
- webhook to support "Polka" based payment service.
Built as part of boot.dev
. The most useful takeaways from this project:
- Implementing a bare-bones JSON file based DB named Chibe (chee-bee). Safe of deadlocks.
- Implementing access and refresh tokens along with revoking mechanism, and authenticating via these tokens.