- Signin, Signup, Email verification, Password reset
- Client side forms validation
- Node/Express rest api
- Nodemailer configuration, Email templates
- Webpack configuration for server and client
- SCSS configuration
- Linting with Airbnb eslint configuration
Clone Repo
git clone https://github.com/DimitriMikadze/node-redux-auth.git
npm install dependencies
cd node-redux-auth/server
npm install
Create index.js file inside src/config folder.
example index.js:
export const dbConfig = {
secret: 'SomeRandomSecretString',
db: 'mongodb://localhost:auth/auth',
};
export const emailConfig = {
service: 'Gmail',
auth: {
user: '[email protected]',
pass: 'Password',
},
};
export const ROOT_URL = process.env.NODE_ENV === 'production' ? 'http://dimitrimikadze.com:3000' : 'http://localhost:3000';
Start Mongodb
mongod
Script | Description |
---|---|
npm run dev |
Run development server |
npm run build |
build the application to ./dist |
npm start |
Start production server with pm2 from ./dist |
npm install dependencies
cd node-redux-auth/client
npm install
Script | Description |
---|---|
npm run dev |
Run development server |
npm run build |
build the application to ./dist |
npm start |
Start production server with pm2 from ./dist |
contributions are welcome!
MIT