Follow these steps to get your financial management application up and running.
Make sure you have the following installed:
- Node.js (version 14 or higher) - Download here
- npm (comes with Node.js)
To verify your installation, run:
node --version
npm --version-
Navigate to the project directory:
cd C:\Users\timud\Documents\financial-app
-
Copy the example environment file and configure it:
copy .env.example .env
-
Open
.envand update the JWT_SECRET (important for security):PORT=5000 JWT_SECRET=your_unique_secret_key_here_make_it_long_and_random NODE_ENV=development
Install all dependencies for both backend and frontend:
npm run install-allThis will:
- Install backend dependencies in the root folder
- Install frontend dependencies in the
clientfolder
Start both the backend server and frontend in development mode:
npm run devThis command will:
- Start the Express backend server on
http://localhost:5000 - Start the React frontend development server on
http://localhost:3000 - Automatically open your browser to the application
- Open your browser to
http://localhost:3000 - Click "Register here" to create a new account
- Fill in your username, email, and password
- Start tracking your finances!
If you prefer to run the servers separately:
npm run servernpm run clientTo create a production build of the frontend:
npm run buildThis creates an optimized build in the client/build folder.
If you see an error about port 5000 or 3000 being in use:
- Change the PORT in
.envfile for the backend - The frontend will automatically proxy to the new backend port
The application uses SQLite, which creates a financial.db file automatically. If you encounter database issues:
- Stop the application
- Delete the
financial.dbfile - Restart the application - it will recreate the database
If you see "Module not found" errors:
# Reinstall dependencies
rm -rf node_modules client/node_modules
npm run install-allOnce the application is running:
- Add Transactions: Track your income and expenses
- View Budget Analysis: See spending patterns and get savings suggestions
- Track Opportunities: Monitor potential investment opportunities
- Review Dashboard: Get an overview of your financial health
For issues or questions, refer to the main README.md file for API documentation and features.