Develop a basic webapp using MERN stack wherein a user can share the latest sales number with his/her boss by email or whatsapp.
- Create a login using Google authentication.
- Once the user logs in, they need to see a dashboard wherein they can fetch the stock price for the given stock on the 15th of May is ___(use any publicly traded stock price from NSE or BSE using any freely available API )
- The user can share that information with their boss (another user) by email or whatsapp with the message "The stock price on the 15th of May is ___".
- Implement logout functionality.
You just need to share a video screen record of the app with clear explanation in your own voice how you implemented each part.
- React.js for the frontend user interface
- Node.js and Express.js for the backend server
- MongoDB for the database
- React Router for routing
- JSON Web Tokens (JWT) for user authentication
To rund the App locally on your machine, follow these steps:
-
Clone the repository:
git clone https://github.com/aslezar/giga-growth-ventures-assignment
-
Navigate to the project directory:
cd giga-growth-ventures-assignment/server
-
Install the dependencies for the backend:
npm install
-
Install the dependencies for the frontend:
cd ../client npm install
-
Make a
.env
and update the configuration values with your own:- Set the
PORT
PORT number to start server on - Set the
MONGO_URI
to your MongoDB connection string - Set the
JWT_SECRET
to a secret key for JWT authentication - Set the
JWT_LIFETIME
JWT liftime
- Set the
-
Start the backend server:
npm run server
-
Start the frontend development server:
npm run client
-
Access the App in your web browser at
http://localhost:3000
.