An Open-Source transaction tracker. This can be used to track your spending per categories, month by month or year by year easily. It also gives you access to charts to see how your spending habits look.
This part is only the back-end part. To see the Angular front-end click here.
- Rails 7 with Postgres
- Devise Token Auth for Authentication
- Capistrano for deployment
- Make sure Ruby & Postgres is installed
- Install packages with
bundle install
- Setup the DB with
rails db:create
andrails db:migrate
(While making sure the credentials match your own DB settings) - Launch App with
rails s
- The API is available at http://localhost:3000/api/v1
- Clone the github folder
git clone https://github.com/art29/TransactionTracker-Rails.git
- Make sure Docker & Docker Compose are installed properly and ports 3001 and 5433 are free
- Copy the
.env.sample
file and create a.env
file with your actual credentials - Run the docker compose file (you may need to login to github to pull the image)
# Optional (only if it doesn't work without it, if you need it, you'll need a Github Personal Access Token) echo $GITHUB_PERSONAL_ACCESS_TOKEN | docker login ghcr.io -u $GITHUB_USERNAME --password-stdin docker compose pull docker compose up -d
- Install a reverse proxy (Apache, Nginx, Caddy etc.) and open port 3001
- Everything should now be working!
Feel free to contribute by making PRs or opening issues if you find any bugs!