This project serves as a demonstration of a full-stack application, utilizing the MERN stack (MongoDB, Express, React, and Node.js) as part of my capstone project for the MIT coding boot camp. It effectively showcases the React architecture within a three-tier application framework, encompassing a browser-based client, an HTTP server, and a data storage layer. Additionally, the project incorporates essential features of authentication and authorization.
The demo emulates a banking application for login users and manages their wallets in a database, considering they might want to withdraw or deposit funds. As well as a basic security setting to authenticate and authorize users.
Before you begin, ensure you have met the following requirements:
- You have installed the latest version of Node.js and npm
- You have a Git client installed
- You have a basic understanding of JavaScript and Node.js
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
To clone the repository, run the following command in your terminal:
git clone https://github.com/your-username/your-project-name.git
Navigate to the project directory:
cd your-project-name
Install the necessary packages using npm:
npm install
This command reads the package.json file and installs all the dependencies required for the project.
Create a .env file in the root directory and add the following:
API_KEY=your_api_key DB_HOST=localhost DB_USER=root DB_PASS=password
To run the application on your local server, execute:
npm start
This will start the server (localhost:3000).
MERN Stack
Front-end: routing, context, styles, parent–child components, tracking state, forms, and handling events
Back-end: MongoDB database with data abstraction layer to ensure application is not dependent on one database option
This project is licensed under the MIT License.