Home - Mokerstier/Techteam-partematch GitHub Wiki
Welcome to the Techteam-partematch wiki!
by: Chris Beams
- Separate subject from body with a blank line
- Limit the subject line to 50 characters
- Capitalize the subject line
- Do not end the subject line with a period
- Use the imperative mood in the subject line
- Wrap the body at 72 characters
- Use the body to explain what and why vs. how
Also keep in mind when committing to use the proper gitmoji in front of your commit! This will give a clear -on first sight- impression what kind of commit is being pushed.
We will be writing code according to the following standards:
- ES6
- EJS (templating)
- MVC
The application will be build and maintained by the MVC model:
Model represents the shape of the data. Model objects main purpose is retrieving and storing data in a database. Data will be stored in an online database on MongoDB-Atlas
our user model contains the following properties
_id: generated ObjectId stored as String,
events: Object{ festival: [array with 1 or multiple strings], party: [array with 1 or multiple strings] },
firstName: String,
lastName: String,
email: String,
password: String hashed with Bcrypt,
gender: String,
dob: Date,
bio: String,
img: Object{ url: String, alt: String},
prefs: Object{ pref: male || female || nopref, looking: love || friendship || nopref}
View stands for user interface. View is used for displaying data and interacting with content by registered users. We will be using .ejs as our templating engine to render our pages.
Controllers handles requests by the user. The user interacts with View, which will raise proper URL requests, the requests wil be handled accordingly by the controller. The control will render appropriate response to the view with the fitting model data.