Go to file
2024-10-31 21:49:03 +01:00
assets feat: Added first chapter sources 2024-10-09 23:11:23 +02:00
cmd/server feat: Added last chapter and refactored whole project 2024-10-26 21:19:11 +02:00
internal feat: Added last chapter and refactored whole project 2024-10-26 21:19:11 +02:00
sql feat: Added last chapter and refactored whole project 2024-10-26 21:19:11 +02:00
.gitignore feat: Added chapter 5 2024-10-23 22:16:51 +02:00
go.mod feat: Add other tasks from chapter 6 2024-10-25 23:31:57 +02:00
go.sum feat: Add other tasks from chapter 6 2024-10-25 23:31:57 +02:00
index.html feat: Added first chapter sources 2024-10-09 23:11:23 +02:00
README.adoc chore: Added needed packages to update DB stuff 2024-10-31 21:49:03 +01:00
sqlc.yml feat: Added chapter 5 2024-10-23 22:16:51 +02:00

Chirpy Server

This repository holds my version of boot.dev HTTP Servers course. It consists in an API where users can log in and send messages (chirps).

Get started

Chirpy relies on a Postgres database (the database should be created first). Needed environment variables are:

  • DB_URL: Postgres URL connection

  • PLATFORM: dev, on purpose of the course

  • JWT_SECRET: can be generated using openssl rand -base64 64

  • POLKA_KEY: predefined dummy API key used to illustrate webhook feature

In order to modify DB schema/queries additional libraries are also needed:

$ go install github.com/pressly/goose/v3/cmd/goose@latest
$ go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest