Luisfeliz3 / mern-passport-box

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ“¦ M-E-R-N + passport box

🍽 Use

  • Fork, or clone and copy what you need

πŸ—ƒοΈ Folder structure

.
β”œβ”€β”€ _assets                <- # project management assets
β”œβ”€β”€ client                 <- # front end react app                        
β”‚   β”œβ”€β”€ README.md          <- # create react app readme
β”‚   β”œβ”€β”€ package.json       <- # create react app dev server (hot reloading)
β”‚   β”œβ”€β”€ public             <- # front end static files 
β”‚   β”‚   β”œβ”€β”€ favicon.ico
β”‚   β”‚   β”œβ”€β”€ index.html
β”‚   β”‚   └── manifest.json
β”‚   └── src                <- # font end source (can also place static files to be packed with webpack)
β”‚       β”œβ”€β”€ App.js         <- # πŸš€ react app entry point 
β”‚       β”œβ”€β”€ components     <- # reusable components
β”‚       β”‚   β”œβ”€β”€ Card
β”‚       β”‚   β”œβ”€β”€ DeleteBtn
β”‚       β”‚   β”œβ”€β”€ Form
β”‚       β”‚   β”œβ”€β”€ Grid
β”‚       β”‚   β”œβ”€β”€ Head
β”‚       β”‚   β”œβ”€β”€ **ProtectedRoute** <- # protected routes (HOC)
β”‚       β”‚   └── Table
β”‚       β”œβ”€β”€ index.js
β”‚       β”œβ”€β”€ pages             <- # page components
β”‚       β”œβ”€β”€ style.css
β”‚       └── **utils**         <- # front end utils
β”‚           β”œβ”€β”€ API.js        <- # coments routes front end api
β”‚           β”œβ”€β”€ useLogPath.js <- # custom hook for development - logs current path
β”‚           └── userAPI.js    <- # user routes front end api
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ **☝️ client πŸ‘‡ server**
β”œβ”€β”€ controllers               <- # routes function
β”‚   β”œβ”€β”€ commentsController.js
β”‚   └── userController.js
β”œβ”€β”€ models                    <- # Schemas
β”‚   β”œβ”€β”€ Comment.js
β”‚   β”œβ”€β”€ User.js
β”‚   └── index.js
β”œβ”€β”€ routes                    <- # routes (only API routes)
β”‚   β”œβ”€β”€ api
β”‚   β”‚   β”œβ”€β”€ comments.js
β”‚   β”‚   β”œβ”€β”€ index.js
β”‚   β”‚   └── user.js
β”‚   └── index.js
β”œβ”€β”€ utils                     <- # server helper functions 
β”‚   β”œβ”€β”€ config.js             <- # global config (put anything you like)
β”‚   β”œβ”€β”€ passport.js           <- # passport setup
β”‚   └── seedDB.js             <- # seed script
β”œβ”€β”€ package.json
β”œβ”€β”€ readme.md
└── server.js                 <- # πŸš€ entry point

About


Languages

Language:JavaScript 91.8%Language:CSS 5.7%Language:HTML 2.4%