├── .editorconfig ├── .eslintrc.js ├── .eslintrc.json ├── .gitignore ├── Readme.md ├── nodemon.json ├── package-lock.json ├── package.json ├── src ├── app.js ├── config │ └── upload.js ├── controllers │ ├── DashBoardController.js │ ├── HouseController.js │ ├── ReserveController.js │ └── SessionController.js ├── models │ ├── House.js │ ├── Reserve.js │ └── User.js ├── routes.js └── server.js └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig is awesome: https://EditorConfig.org 2 | 3 | # top-most EditorConfig file 4 | root = true 5 | 6 | [*] 7 | indent_style = space 8 | indent_size = 4 9 | end_of_line = crlf 10 | charset = utf-8 11 | trim_trailing_whitespace = true 12 | insert_final_newline = true -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | env: { 3 | es2021: true, 4 | node: true, 5 | }, 6 | extends: [ 7 | 'airbnb-base', 8 | ], 9 | parserOptions: { 10 | ecmaVersion: 12, 11 | sourceType: 'module', 12 | }, 13 | rules: { 14 | "class-methods-use-this": "off", 15 | "no-param-reassing": "off", 16 | "camelcase": "off", 17 | "no-underscore-dangle": "off", 18 | "no-unused-vars": ["error", {"argsIgnorePattern": "next" }] 19 | }, 20 | }; 21 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "es2021": true, 4 | "node": true 5 | }, 6 | "extends": [ 7 | "airbnb-base" 8 | ], 9 | "parserOptions": { 10 | "ecmaVersion": 12, 11 | "sourceType": "module" 12 | }, 13 | "rules": { 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- 1 | ## Introductnio 2 | 3 | Registering homes with MongoDb and Express 4 | 5 | ### Running on native machine 6 | 7 | 1. Install de dependencies with `npm install`, `npm install yarn`, `npm install --save-dev sucrase`, `npm install express`, `npm install -S yup`, `npm install --save multer`, `npm install joi`, `npm install mongoose`, `npm install --save multer` 8 | 2. Access `https://localhost:3334` and you're ready to go 9 | 10 | ## Scripts 11 | 12 | This boilerplate comes with a collection of scripts to maker your life easier, you'll run them with `yarn