https://github.com/imranhsayed/mern-boilerplate
A boilerplate for MERN APP ( Mongodb, Express, React, Node ) with Login, Registration with Facebook, Google and Recaptcha. Pre setup of mongodb
https://github.com/imranhsayed/mern-boilerplate
Last synced: about 1 year ago
JSON representation
A boilerplate for MERN APP ( Mongodb, Express, React, Node ) with Login, Registration with Facebook, Google and Recaptcha. Pre setup of mongodb
- Host: GitHub
- URL: https://github.com/imranhsayed/mern-boilerplate
- Owner: imranhsayed
- Created: 2018-11-06T07:34:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-07T09:28:51.000Z (over 7 years ago)
- Last Synced: 2024-12-28T09:04:12.009Z (over 1 year ago)
- Language: JavaScript
- Size: 216 KB
- Stars: 17
- Watchers: 4
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A MERN( Mongodb, Express, React, Node ) Boilerplate
## Description
Has following built in functionalities:
-Login and Registration Routes with csrf Protection
-Register with Facebook and Google along with Recaptcha verification
-Login with Facebook and Google along with Recaptcha verification
-Logout
-Email Verification with Mailgun
-Reset Password by sending the new password on email.
-Form Validations at both client and server side.
-Private Routes Option
-Mongodb and Redux Setup
-uses create-react-app
## Installation Instructions
git clone https://github.com/imranhsayed/mern-boilerplate
`$ cd mern-boilerplate`
#### in root dir
`$ npm cache clean --force`
`$ npm install`
#### in client dir
`$ cd client`
`$ npm cache clean --force`
`$ npm install`
Install nodemon and create-react-app globally using below command:
`$ npm i -D nodemon`
`$ npm i -g create-react-app`
## Set your Configurations
### Mongodb Configuration
1-Set your mongodb url with username and password in config/keys_dev.js and config/keys_prod.js
`mongoURI: 'mongodb://:@ds151853.mlab.com:51853/yourUrl'`
### Mailgun Configuration
2-Set your mailgun username and password in config/mailer.js. Mailgun host configurations are in misc/mailer.js, which you dont need to change if you are using mailgun
`MAILGUN_USER: 'XXX',
MAILGUN_PASSWORD: 'XXX'`
### Login with Facebook, Google, and Recaptcha Configuration
3-Set the following configuration for Login with Facebook and Google and recaptcha in client/src/components/keys/keys.js
`fbAppId = '1776585689892454';`
`googleClientId = '1075202126460-37bbm5sr56a95uiuiijsr6gdo0rmn3.apps.googleusercontent.com';`
`recaptchaSiteKey = '6LdnmHIUAAAAANu0uuiisudiseKUBqhslcTH8hvn9w';`