Categorygithub.com/Kazyel/chirpy-bootdev
modulepackage
0.0.0-20241023201234-2e23829f29ce
Repository: https://github.com/kazyel/chirpy-bootdev.git
Documentation: pkg.go.dev

# README

Chirpy API

This is the API built for the Chirpy application.

It is written in Go and uses these two tools: sqlc to generate the database queries and models and goose to manage the database migrations.

Setup

Database

The database is managed by PostgreSQL. You can install it on your machine using the following command (Mac & Linux):

brew install postgresql
sudo apt-get install postgresql

Once installed and started, you can create a database named chirpy with the following command:

createdb chirpy

Then, you should run the migrations to create the tables and columns:

goose postgres dburl -dir ./sql/schema up

Now, you can create a .env file in the root of the project with the following content:

DB_URL=postgres://postgres:postgres@localhost:5432/chirpy?sslmode=disable
PLATFORM=dev
JWT_SECRET=secret
POLKA_KEY=polka

API Endpoints & Resources

For more detailed documentation, please refer to the API documentation.

# Packages

No description provided by the author
No description provided by the author