Bank MERN Stack is a simple web application built using the MERN stack. The app allows users to create bank accounts, deposit and withdraw money, and transfer money to one another
"dependencies": {
"cors": "^2.8.5",
"dotenv": "^16.0.3",
"express": "^4.18.2",
"mongoose": "^7.0.2",
"morgan": "^1.10.0",
"nodemon": "^2.0.21",
"slugify": "^1.6.5"
}
To run this project, you'll also need to have a MongoDB Atlas account and create a project for this project in MongoDB Atlas. Once you have created a project in MongoDB Atlas, you can obtain your MongoDB URI, which you will need to set as an environment variable in the config.env
file to connect to your database. See the Local Environment Variables section in this README for more information.
After cloning the repository, run the following command to install the required dependencies:
npm install
In order to run the project locally, you'll need to set some environment variables. Create a config
folder in the root directory of the project, and add a file named config.env
with the following variables:
NODE_ENV=development
PORT=5000
MONGO_URI=<Your MongoDB Connection String>
Make sure to replace <Your MongoDB URI>
with the actual URI for your MongoDB instance.
To start the server in development mode with nodemon, run the following command:
npm run dev
The server should now be running on http://localhost:5000
.
live preview at: https://bank-api-client.netlify.app/
This project is licensed under the MIT License.