Skip to content

vpaulo/rminder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project rminder

Keep track of your tasks

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

MakeFile

run all make commands with clean tests

make all build

build the application

make build

run the application

make run

Create DB container

make docker-run

Shutdown DB container

make docker-down

live reload the application

make watch

run the test suite

make test

clean up binary from the last build

make clean

Deploy

Build debian packages for rminder and rminder-caddy:

make package

Create rminder user on the host:

adduser --system --no-create-home --disabled-password --disabled-login rminder

Install packages on the host:

deb -i rminder.deb
deb -i rminder-caddy.deb

Enable systemd services:

systemctl daemon-reload

systemctl enable rminder
systemctl enable rminder-caddy

Start the services:

systemctl start rminder
systemctl status rminder

systemctl start rminder-caddy
systemctl status rminder-caddy

Check the logs:

journalctl -u rminder.service -f
journalctl -u rminder-caddy.service -f

Testing Stripe payments

Ensure you have these variables in the .env file:

STRIPE_RETURN_TO_URL=http://localhost:3000
STRIPE_PREMIUM_PRICE_ID=...
STRIPE_SECRET_KEY=...
STRIPE_WEBHOOK_SECRET=...

STRIPE_SECRET_KEY you can get from your Stripe account. You will have to create a product and set a price and then copy the price id to STRIPE_PREMIUM_PRICE_ID.

Download Stripe CLI and login:

stripe login

Then run:

stripe listen --forward-to localhost:3000/post-checkout/webhook

Copy webhook secret and put it in STRIPE_WEBHOOK_SECRET.

You can now do test payments with Stripe!

About

Keep track of your tasks

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •