A custom rental property management solution, which allows a property manager to create a platform for their tenants to communicate upwards. A landlord is able to establish their buildings and provide tenants with access to just the building or property they are a part of. The tenant is able to create an account to begin posting maintenance issues, ratings, and communicate with the landlord.
- This program is designed to perform CRUD (Create, Read, Update, Delete) operations from a relational database on a front-end Rental Property Management Website.
- Backend: The back-end of this project was completed using Node.js, express server, mysql database, npm Sequelize and tested in a backend environment (Insomnia).
- Frontend: This front-end of this project was completed using npm handlebars, css, rendered with front-end javascript fetch requests.
- JavaScript
- Node.js
- express.js
- npm (mysql2)
- npm (sequelize)
- npm (dotenv)
- npm (express-handlebars)
- npm (express-session)
- npm (uniqid)
- Write out DB Models
- Relations of DB models (Associations) drawn in an ER Diagram.
- Work on Landlord and Tenant routes (login/logout) on backend && add sessions.
- Work on Property, Unit, Issue and Comment routes on backend
- Once routes on backend are tested (insomnia), go to frontend JS files (public/javascript) and connect end points from backend by rendering the get requests.
- Inject data from backend to display on page (handlebars.js).
- Then get to styling (stylesheets).
-This is a middleman diagram to help us to convert our business idea into a database schema(sequelize api routes)
- Open Gitbash/terminal, navigate towards your project location from your root by using "cd ./ project location"
- Choose a clone option from the "MOAT" repository (either HTTPS or SSH should work)
- In Gitbash, type "git clone HTTPS or SSH"
- Once the clone is successful, navigate to the root directory of this repo.
- Enter
npm i
into the terminal to install all dependencies linked in thepackage.json
file.
-
In your command window/gitbash shell, enter
mysql -u root -p
and then type your password of your sql account. -
type in
source db/schema.sql
to feed the relational tables into the database. -
Create a
.env
file in your root directory, as the seeding the database requires connection to your database -
(optional) In terminal, enter
npm run seed
to feed the database with test seeds.
-
Cloud: Open the deployed heroku link, the project is hosted on the cloud and ready to be used!
-
Local Machine: type
node server
in your gitbash shell and navigate tohttp://localhost:3001/
in your browser window.