Skip to content

eduardomp/funnels-backend

Repository files navigation

Funnels Backend App

This app was based on a boilerplate for Go Fiber that makes use of Docker, PostgreSQL and JWT.

To check the recipe, go to https://github.com/gofiber/recipes/tree/master/auth-docker-postgres-jwt

Development

In order to have an optimal development experience you need to have Docker installed.

Set the environment variables in a .env file: - DB_PORT=5432 - DB_USER=example_user - DB_PASSWORD=example_password - DB_NAME=example_db - SECRET=example_secret

Be sure you don't have any conflicting containers. Then run the commands:

docker compose build

docker compose up

But if you want to clear your entire workspace do

docker compose rm -f && docker system prune -f && docker compose build --no-cache && docker compose up

This should start the API and the database with live reloading.

Database Management

You can manage the database via psql with the command:

docker-compose exec db psql -U <DB_USER (from the environment variables)>

Or use DBeaver, pgAdmin...

About

Backend app of Funnels project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors