YourRightPocket is a web application designed to power a fintech platform that enables users to round up their purchases and donate the spare change to charity. The API provides endpoints for user authentication, transaction management, and integration with financial data providers.
The main goal of this project is to facilitate seamless charitable donations by automating the process of rounding up transactions and distributing the accumulated funds to selected charities. This backend service is intended to be deployed on Railway for easy scalability and management.
- Node.js: JavaScript runtime environment for building scalable server-side applications.
- Express: Fast, unopinionated web framework for Node.js, used to build the RESTful API.
- MySQL: Relational database for storing user data, transactions, and charity information.
- bcryptjs: Library for hashing and verifying user passwords securely.
- jsonwebtoken: For secure authentication using JWT tokens.
- Plaid: Integration with financial institutions to access user transaction data.
- dotenv: Loads environment variables from
.envfiles for configuration. - CORS: Middleware to enable Cross-Origin Resource Sharing.
- Nodemon (dev dependency): Automatically restarts the server during development.
- Railway: The project is configured for deployment on Railway, with a
Procfileandrailway.jsonfor build and deployment settings.
- Clone the repository
- Install dependencies
npm install - Set up environment variables
- Copy
api/env.exampleto.envand fill in the required values.
- Copy
- Run the server
npm start - Development mode
npm run dev
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.