Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/engineer-man/express-mvc-skeleton
Basic boilerplate for a new Express app
https://github.com/engineer-man/express-mvc-skeleton
express nodejs redis
Last synced: about 2 months ago
JSON representation
Basic boilerplate for a new Express app
- Host: GitHub
- URL: https://github.com/engineer-man/express-mvc-skeleton
- Owner: engineer-man
- Created: 2020-06-29T02:16:59.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-23T21:08:34.000Z (9 months ago)
- Last Synced: 2024-04-23T23:09:51.462Z (9 months ago)
- Topics: express, nodejs, redis
- Language: JavaScript
- Homepage:
- Size: 170 KB
- Stars: 13
- Watchers: 5
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# simple express.js skeleton application
good for somebody who isn't sure how it all fits together and needs a starting point for making web applications in node.js.#### it uses the following key components:
* `express` for handling routes
* `sequelize` as the database orm
* `redis` for session store
* `webpack` for bundling frontend assets#### quickstart
```shell
git clone https://github.com/engineer-man/express-mvc-skeleton
cd express-mvc-skeleton
docker-compose up
```
then open http://127.0.0.1:8000 in your browser#### other essential commands
```shell
# access container running your app
docker-compose exec app /bin/bash# access mysql
docker-compose exec mysql mysql -uroot -proot
```
#### outline of project structure
```
|- controllers # these are for handling routes
|- frontend # contains js, jsx, less files to be bundled for the frontend
|- models # these are for accessing your db
|- public # all non-routes get served from here
|- var # variable data for variable purposes
|- views # these are your templates, controllers will render them
```