https://github.com/punkestu/express-boilerplate
Boilerplate with express, liquidjs, and react for creating apps with good domain organization
https://github.com/punkestu/express-boilerplate
express liquidjs reactjs typescript
Last synced: 5 months ago
JSON representation
Boilerplate with express, liquidjs, and react for creating apps with good domain organization
- Host: GitHub
- URL: https://github.com/punkestu/express-boilerplate
- Owner: punkestu
- Created: 2024-01-16T16:52:13.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-02T14:22:01.000Z (over 2 years ago)
- Last Synced: 2024-02-02T15:30:05.786Z (over 2 years ago)
- Topics: express, liquidjs, reactjs, typescript
- Language: TypeScript
- Homepage:
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Express Boilerplate
Create express project in no time
## Development
Do nothing and call
```
npm run dev
```
## Production
Build with ```npm run build```
and then run with
```
npm run start
```
## Structure
```
src
├── apps
│ └── [any app]
│ ├── controller.ts
│ ├── repo.ts
│ ├── route.ts
│ └── model.ts
├── bin
├── public
├── routes
│ ├── api
│ │ ├── v1.ts
│ │ └── .etc
│ ├── static.ts
│ └── web.ts
├── views
└── index.ts
```
Explanation:
- ***apps***: will contain all apps folder that will have controller, repo, model and route.
- ***bin***: will contain main express instance.
- ***public***: will contain public file such as css, image, .etc.
- ***routes***: will contain all top level routes and devided into 3 segment: web(for website), api(for api provider), and static(for static file).
- ***views***: will contain all views, layout, and partials.