- Clone the repository
https://github.com/imrosun/email-sage.git
- To run backend open project and go to terminal
cd backend
npm install
npm run start
You will need .env file in backend directory which will have PORT=5000 MONGO_URI= SENDGRID_API_KEY= FROM_EMAIL=
For MONGOURI - Create an account -> create project -> create cluster: copy cluster name https://account.mongodb.com/account/login
For SENDGRID_API_KEY - Create an account, generate api key, verify email https://app.sendgrid.com/
For FROM_EMAIL - verified email address here
Restart the server again
- To run frontend open new terminal
cd frontend
npm install
npm run dev
You will need .env file in frontend directory too for api endpoint VITE_API_URLL=http://localhost:5000/api
- Open app on frontend localhost link or http://localhost:5173/