-
Notifications
You must be signed in to change notification settings - Fork 35
Core v4 Style Guide
Evan Ugarte edited this page Jan 19, 2022
·
9 revisions
<insert cool welcome text here (example)>
- talk about eslint rules
- talk about mongodb schema naming
everything esle
backend/main-endpoints/routes
officer-manager.js
frontend/src/pages/printing-analytics
ProfileHeader.jsx
ProfileHeader.css
ProfileHeader.scss
helper-function.js
header-image.jpg
-
camelCase -
append
DBto the end of the name -
singular
myNewDB
-
lowercase -
no separators
-
plural
doorcodes
inventoryitems
accessLevel
firstName
{
"data": {
"firstName": "Jane",
"lastName": "Doe",
"email": "example@email.com"
}
}{
"error": {
"message": "Use 8 characters or more for your password"
}
}try {
const res = await axios.post(...);
const { firstName, lastName, email } = res.data.data;
} catch (err) {
const status = err.response.status;
const { message } = err.response.data.error;
}# HTML & CSS