https://github.com/olekscode/diary
To be written...
https://github.com/olekscode/diary
Last synced: 3 months ago
JSON representation
To be written...
- Host: GitHub
- URL: https://github.com/olekscode/diary
- Owner: olekscode
- Created: 2015-11-13T08:35:49.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-12T23:02:32.000Z (over 9 years ago)
- Last Synced: 2025-02-08T00:32:05.543Z (5 months ago)
- Language: JavaScript
- Size: 2.06 MB
- Stars: 0
- Watchers: 8
- Forks: 1
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Diary
## Folder structure
```
.
+-- doc/
+-- src/
| +-- controllers/
| +-- helpers/
| +-- middlewares/
| +-- models/
| +-- public/
| +-- css/
| +-- img/
| +-- lib/
| +-- tests/
| +-- views/
+-- package.json
+-- README.md
```### Description of src/ structure:
* **controllers/** – defines the app routes and their logic
* **helpers/** – code and functionality to be shared by different parts of the project
* **middlewares/** – Express middlewares which process the incoming requests before handling them down to the routes
* **models/** – represents data, implements business logic and handles storage
* **public/** – contains all static files like images, styles and javascript
* **views/** – provides templates which are rendered and served by the routes
* **tests/** – tests everything which is in the other folders
* **app.js** – initializes the app and glues everything together> This structure was inspired by [Best practices for Express app structure](https://www.terlici.com/2014/08/25/best-practices-express-structure.html).