11### A Dockerized Nodejs Express Boilerplate with TypeScript
22
33#### Why
4- The main idea behind this app is that, We like you to be focused on your business and not spending hours in project configuration.
4+
5+ The main idea behind this app is that, We like you to be focused on your business and not spending hours in project configuration.
56
67Give this a try!! We are more than happy to hear your feedback or feature request.
78
89---
910
1011#### About
1112
12- A comprehensive template. Works out of the box for most Node.js projects with following pieces
13+ A comprehensive template. Works out of the box for most Node.js projects with following pieces
1314
1415- [ Docker] as the container service to isolate the environment.
1516- [ Node.js] (Long-Term-Support Version) as the run-time environment to run JavaScript.
@@ -25,27 +26,34 @@ A comprehensive template. Works out of the box for most Node.js projects with fo
2526
2627#### Features
2728
28- + TypeScript
29- + ESLint with some initial rules recommendation
30- + Jest for fast unit testing and code coverage
31- + Type definitions for Node.js and Jest
32- + NPM scripts for common operations
33- + Simple example of TypeScript code and unit test
34- + Example configuration for GitHub Actions
29+ - TypeScript
30+ - ESLint with some initial rules recommendation
31+ - Jest for fast unit testing and code coverage
32+ - Type definitions for Node.js and Jest
33+ - NPM scripts for common operations
34+ - Simple example of TypeScript code and unit test
35+ - Example configuration for GitHub Actions
3536
3637---
3738
38- ### Getting Started
39+ ##### Getting Started
3940
4041#### Docker
42+
4143- Clone the repository
4244- Run ` docker-compose up `
4345
4446#### Without Docker
47+
4548- Clone the repository
49+
50+ You need to install postgreSQL manually for the installation [ guide] ( https://www.enterprisedb.com/downloads/postgres-postgresql-downloads )
51+
4652- Run ` npm install `
47- - Run ` npm run typeorm migration:run ` *
48- - Run ` npm run watch `
53+ - Run ` npm run typeorm schema:sync `
54+ - Run ` npm run typeorm migration:run `
55+ - Run ` npm i ts-node -g `
56+ - Run ` npm run dev `
4957
5058\* You need to set environment variables to provide configuration for database connection. Please see ` src/config.ts ` for environment variable names.
5159
@@ -58,14 +66,14 @@ The API will be useable from the documentation available at http://localhost:300
5866
5967### Available Scripts
6068
61- + ` clean ` - remove coverage data, Jest cache and transpiled files,
62- + ` build ` - transpile TypeScript to ES6,
63- + ` build:watch ` - interactive watch mode to automatically transpile source files,
64- + ` lint ` - lint source files and tests,
65- + ` test ` - run tests,
66- + ` test:watch ` - interactive watch mode to automatically re-run tests
67- + ` watch ` - automatically restart the application when file changes in the directory are detected
68-
69+ - ` clean ` - remove coverage data, Jest cache and transpiled files,
70+ - ` build ` - transpile TypeScript to ES6,
71+ - ` build:watch ` - interactive watch mode to automatically transpile source files,
72+ - ` lint ` - lint source files and tests,
73+ - ` test ` - run tests,
74+ - ` test:watch ` - interactive watch mode to automatically re-run tests
75+ - ` watch ` - automatically restart the application when file changes in the directory are detected
6976
7077### License
78+
7179[ MIT] ( /LICENSE )
0 commit comments