https://github.com/markuspeitl/node-typescript-handlebars-template
Simple template repo for building quick and small web applications with NodeJS, typescript and express uses handlebars as the tempate engine.
https://github.com/markuspeitl/node-typescript-handlebars-template
dependecies express handlebars mocha nodejs nodemon typescript
Last synced: 5 months ago
JSON representation
Simple template repo for building quick and small web applications with NodeJS, typescript and express uses handlebars as the tempate engine.
- Host: GitHub
- URL: https://github.com/markuspeitl/node-typescript-handlebars-template
- Owner: markuspeitl
- License: apache-2.0
- Created: 2019-08-27T14:30:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-14T00:02:38.000Z (almost 3 years ago)
- Last Synced: 2025-06-03T15:11:30.559Z (6 months ago)
- Topics: dependecies, express, handlebars, mocha, nodejs, nodemon, typescript
- Language: TypeScript
- Homepage:
- Size: 473 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Node Typescript-Handlebars Express template
## Description
Simple template repo for building quick and small web applications with NodeJS, typescript and express.
Uses handlebars as the tempate engine.
Prefect for rapid prototyping a web application, with simple frontend.
(Very lightweight, if you build something bigger use Vue.js or React, if
it is there to last Angular might be the right thing).
Has mocha as a testing framework.
Uses nodemon and the watch mode of the typescript compiler to recompile and
restart the application as soon as changes (to the .ts files) occur.
## Dependecies
Might require typescript & tsc to be globally installed as well:
```bash
npm install -g typescript
```
Has some pre defined **dependencies**:
**Express** as the server framework for nodejs
**Socket.IO** to provide socket based communication
**node-fetch** to provide a simple http client (as development for request was stopped)
## How to run
### Development
Install development and prod dependencies:
```bash
npm install
```
Run applcation in development mode (recompiles sources and restarts if typescript files change):
```bash
npm start
```
### Testing
Run mocha tests:
```bash
npm test
```
### Production
Install production dependecies only (-> no devdependencies):
```bash
npm run prod:install
```
Build the typescript sources in production mode + set process.env.NODE_ENV="production"
(-> no devdependencies):
```bash
npm run prod:build
```
Run on production
```bash
npm run prod:start
```
#### If you like the template consider dropping me a coffee
[](https://www.paypal.com/donate?hosted_button_id=BSFX8LCPHW2AE)