/the-godfather.tech

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

the-godfather.tech

Support Open Source projects using badge like this one: 👉️ List of sponsors

This SAAS help:

  • 👨‍💻️ Developer: create sponsored badge in you README.md.
  • 💰️ Sponsor: pay to get your name inside some repository

Setup

This is a monorepo with theses repositories

  • backend, API to handle campaigns and badge generation
  • frontend, the frontend for the API

Development

docker-compose up

Also start Stripe CLI for webhook

stripe listen --forward-to http://localhost/api/v1/campaigns/webhook

Docker

Build image is available here: arousseau/daddy-open-source.

Build a fresh Docker image

docker build -t "daddy-open-source:lastest" .

Before run it, you may want to create a network

docker network create --driver bridge br-daddy

you may want to start a side Postgres container like this

docker run \
  -e POSTGRES_USER=daddy \
  -e POSTGRES_PASSWORD=password \
  -e POSTGRES_DB=daddy \
  -p 5432:5432 \
  --name daddy-db \
  --network br-daddy \
  postgres:13

docker exec daddy-db psql -U daddy -c 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp"'

Then run it

docker run \
  -e JWT_SECRET=azerty \
  -e DATABASE_USER=daddy \
  -e DATABASE_PASSWORD=password \
  -e DATABASE_HOST=daddy-db \
  -e DATABASE_DB=daddy \
  -p 3000:3000 \
  --name daddy-server \
  --network br-daddy \
  "daddy-open-source:lastest"

TODO