Follow the steps below to set up and run the backend server for the Expense Tracker application:
Clone the repository from GitHub to your local machine:
git clone https://github.com/Codinglone/tf-expense-tracker-backend.git
Change to the backend directory:
cd tf-expense-tracker-backend
Install all required dependencies using npm:
npm install
Create a .env
file in the root of the backend directory and add the following environment variables:
PORT=5000
MONGODB_URI=mongodb://localhost:27017/expense-tracker
JWT_SECRET=your_jwt_secret_key
- Replace
your_jwt_secret_key
with a strong, secure key for JWT authentication.
Run the following command to start the backend server in development mode:
npm run dev
- The backend API will be available at:
http://localhost:5000/api
- API documentation is accessible at:
http://localhost:5000/api-docs
For additional details or troubleshooting, refer to the project documentation or contact the development team.