Skip to content

THIS IS A HYBRID APP WITH BOTH A CRUD LAYER AND A REST API FOR REACT. ITS A COMPLETE HACK INTO MERN STACK WITHOUT USING TWO DIFFERENT SERVERS (ONE FOR BACKEND AND THE OTHER FOR CLIENT). THIS APP USES BOTH EJS AND JSX

License

Notifications You must be signed in to change notification settings

spencerjibz/PARTIAL-MERN-APP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

THIS IS A HYBRID APP WITH BOTH A CRUD LAYER AND A REST API FOR REACT. ITS A COMPLETE HACK INTO MERN STACK WITHOUT USING TWO DIFFERENT SERVERS (ONE FOR BACKEND AND THE OTHER FOR CLIENT). THIS APP USES BOTH EJS AND JSX . WEBPACK IS MODULE BUNDLER USED FOR THIS PROJECT

Requirements

  • MongoDB (local/remote)

  • Email account for nodemailer

  • Nodejs

Application Specs

  • sends emails using nodemailer
  • uses both ejs and react(jsx)
  • authentication and authorization is supported using passport and express auth middleware
  • mongoose ODM for mongodb
  • fs module for used to manage some files (profile page)
  • os module for get platform information used to edit directorypaths specific to each platform
  • Hybrid App with both CRUD and an API for react client
  • Media player and webcam in the projects page

Usage

1 .checkout the LiveDemo

2 .For copy of the app

  • clone the repo or download zipped folder

git clone https://github.com/spencerjibz/PARTIAL-MERN-APP.git && cd MERNAPP && npm install

  • Edit the keys.js file in the config folder, add the mongodb uri and the email credentials
/config/keys.js

module.exports ={
    // enter the uri for production mongodb
    prod: process.env.DBURI|| 'mongodb://<username>:<password without special characters></passwordwithout>@ds024748.mlab.com:24748/myusers',
    // uri for mongodb installed locally, enter the database name
    home:'mongodb://localhost:27017/databasename',
    // enter your mailing service for node-mailer
    nodemailerService: process.env.nodemailerService||'Gmail',
    // enter your email address below
    EA: process.env.EA||'example@domain.com',
    // enter your password for nodemailer auth
    pass: process.env.pass||'password',
    //enter the port of your app
    PORT:process.env.PORT||9000,
    PGP: ['-----BEGIN PGP PUBLIC KEY BLOCK-----…']
}



npm start

  1. sign up, login and checkout all the features

About

THIS IS A HYBRID APP WITH BOTH A CRUD LAYER AND A REST API FOR REACT. ITS A COMPLETE HACK INTO MERN STACK WITHOUT USING TWO DIFFERENT SERVERS (ONE FOR BACKEND AND THE OTHER FOR CLIENT). THIS APP USES BOTH EJS AND JSX

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages