| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Check the API documentation for more information (for now this page is hosted locally, so please run the project before accessing the documentation).
docker compose up -d
just migrate
just devgo install github.com/air-verse/air@latest# for now none needed
PORT="4000"
PG_USER="postgres"
PG_PASSWORD="postgres"
PG_PORT="5432"
PG_HOST="0.0.0.0"
PG_DATABASE="gists"
PUBLIC_URL="http://localhost:4000"
FRONTEND_URL="http://localhost:3000"
GOOGLE_KEY="<REDACTED>"
GOOGLE_SECRET="<REDACTED>"
GITHUB_KEY="<REDACTED>"
GITHUB_SECRET="<REDACTED>"
MAIL_SMTP="<REDACTED>"
MAIL_PASSWORD="<REDACTED>"
SMTP_PORT="<REDACTED>"
SMTP_HOST="<REDACTED>"
APP_KEY="<REDACTED>"
ENV="development"just dev
# or
airAll the configuration is done through env variables :
To run tests, execute:
just test <your-test-name>
# or to run all tests
just test-allFor migrations we use migrate.
To create a migration run the following command :
migrate create -ext=sql -dir=migrations -seq initTo run the existing migrations locally :
just migrate
# or
migrate -path=migrations -database "postgresql://postgres:postgres@0.0.0.0:5432/gists?sslmode=disable" -verbose upTo rollback a migration :
migrate -path=migrations -database "postgresql://postgres:postgres@localhost:5432/gists?sslmode=disable" -verbose down 1| Back | FazBrowse Home | New Git URL |