Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
punkestu committed Jan 16, 2024
1 parent f4e4f31 commit 985b228
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 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.

0 comments on commit 985b228

Please sign in to comment.