Web server that mimics a popular short-form-messaging platform backend with:
- CRUD operations for messages
- User auth with JWT
- Refresh tokens as extra security layer on top of of JWT
- User login/logout and relevant access permissions
- JSON object to mimic document store for messages and users
go build -o out && ./out
Either manually delete the previously created database.json file or run: go build -o out && ./out --debug
Creation:
Login:
Post chirp using auth token:
Get Chrips:
Creation:
Upgrade using API Key:
Premium feature (is_chirpy_red) activated:
- not allowing duplicate user creation
- Only user can delete their own tweets
- Admin panel with auto-increment visitor count
- Admin revocation of user access
- API health-check endpoint
- Reading chirps by chirp_id
- If a user should not be allowed to perform a certain task...they won't be able to without correct auth tokens etc.