CoinKeeper is an expense-tracking web application designed to help you keep track of your finances. With CoinKeeper, you can easily monitor your expenses, categorize them, and gain insights into your spending habits.
This web application is live. Click here
- User registration and login
- Add, view, and delete expenses
- View total expenses by category (Savings, Expenditure, Investment)
- Node.js
- Express.js
- MongoDB (with Mongoose)
- EJS (Embedded JavaScript templates)
- Bootstrap (for styling)
- bcrypt (for password hashing)
- jsonwebtoken (for authentication)
- Node.js and npm installed
- MongoDB installed and running
- Environment variables set up
- Clone the repository:
git clone https://github.com/yourusername/coinkeeper.git
cd coinkeeper
- Install dependencies:
npm install
- Set up environment variables:
Create a .env
file in the root directory and add the following variables:
JWT_SECRET=your_jwt_secret
MONGO_URI=your_mongo_connection_string
PORT = your_port
SECRET_KEY = your_secret_key
- Run the application:
npm start
The application will be available at
http:https://localhost:your_port.
- Navigate to http:https://localhost:your_port/register.
- Fill out the registration form and submit.
- Navigate to http:https://localhost:your_port.
- Fill out the login form and submit.
- After logging in, you will be redirected to the profile page.
- Add expenses by selecting the expense type, entering a description, and amount.
- View your total expenses by category.
- Clear all expenses using the "Clear All" (
x
) button.
- Click the
Log Out
button to log out of your account.
├── public
│ ├── script.js
│ └── style.css
├── controllers
│ └── controller.js
├── views
│ ├── index.ejs
│ ├── login.ejs
│ └── register.ejs
├── .env
├── .gitignore
├── README.md
├── package.json
├── server.js
├── utils
│ └── utils.js
├── middlewares
│ └── middleware.js
└── models
├── amount.model.js
└── user.model.js
- public: Contains static assets such as CSS and JavaScript files.
- controllers: Contains the route handlers for the application.
- views: Contains the EJS templates for rendering HTML.
- utils: Contains utility functions used throughout the application.
- middlewares: Contains middleware functions such as authentication.
- models: Contains Mongoose models for interacting with the MongoDB database.
Contributions are welcome! Please fork the repository and submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.