Spendwise is a simple expense tracker that allows users to keep track of their expenses and view their spending habits over time. This project is a lightweight web application that utilizes HTML, CSS, and Go to create a dynamic user experience without the need for complex frameworks. Additionally, it incorporates htmx, a library that allows for seamless and efficient server-side rendering of HTML content.
npm install -g tailwindcssTo get this project running pefectly on your local, ensure you follow the instructions below.
- Create a .env file in the root directory.
- In the .env file ensure you have the following setup.
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
STATE_STRING_GL=random-random
PORT=
DB_USER=
DB_PASSWORD=
DB_PORT=
DB_HOST=
DB_NAME=
- To get your google details, you a need to create a project on the google developer console and get your client id and client secret. https://medium.com/@bnprashanth256/oauth2-with-google-account-gmail-in-go-golang-1372c237d25e
- Run the go command below
go run .To run the tailwindcss(If you add new classes), you need to run the command below.
tailwindcss -i ./static/css/input.css -o ./static/css/output.css --watch- You could also use the https://github.com/cosmtrek/air to run the project.
- Visit http://localhost:port to login the user you created.
If you find an issue running this project please send in a PR.
👤 Onasanya Tunde
- Website: https://onasanyatunde.dev
- Twitter: @simply_rammy
- Github: @rammyblog
- LinkedIn: @onasanya-tunde
Give a ⭐️ if this project helped you!
// TODO
- Clean up the UI
- Error form
- Pagination
