This is a project with a linux shell script which if you run will download a template of mern stack application to your desktop with all the dependencies installed and you can smoothly get a connected frontend and backend application.
- axios
- bootstrap
- react
- react-bootstrap
- react-dom
- react-toastify
- prettier (Dev Dependencies)
- bcrypt
- cookie-parser
- cors
- dotenv
- express
- jsonwebtoken
- mongoose
- nodemailer
- nodemon (Dev Dependencies)
- prettier (Dev Dependencies)
- Download the ./mern_template script and then give it execution permission by
sudo chmod +x mern_template.sh
- Run the script named mern_template by following command
./mern_template.sh project_name
- This will clone and install all the dependenices of the project and open vs code.
- Uncomment the .env from the .gitignore
- Now fill the .env of the backend with
EMAIL_ID
andAPP_PASSWORD
that will be used to sent mail of confirmation after signup. - Use the email which has 2 step verification on.
- Go to the account settings of that chosen mail and search for app password, create or generate a app password and paste it here.
- Create a mongodb atlas project with proper ip access (use open for all access for development) and get the URI and than append the database name too. e.g.
mongodb+srv://<Your Username>:<Your Password>@cluster0.<Project Id>.mongodb.net/<Database Name>
likemongodb+srv://harshsh0503:[email protected]/Red_Alert
- Simply run the project by npm run dev in both frontend and backend.
- Change the title of the project inside the frontend from navbar and index.html.
Any form of contribution is welcomed and deeply valued.