Skip to content

Commit 1d437e4

Browse files
author
hirsch88
committed
Merge branch 'develop' of github.com:w3tecch/express-typescript-boilerplate into develop
2 parents f00bd0b + 42c1b2c commit 1d437e4

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

README.md

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
by [w3tech](https://github.com/w3tecch)
1919

2020
## Why
21-
Our main goal with this project is, that we have a feature complete server application.
22-
So you can focus more on main product and not spending hours for a project configuration.
21+
Our main goal with this project is a feature complete server application.
22+
We like you to be focused on your business and not spending hours in project configuration.
2323

24-
Just try it out and give us some feedback or whishes for new features.
24+
Try it!! We are happy to hear your feedback or any kind of new features.
2525

2626
## Features
2727
- **Beautiful Syntax** thanks to the awesome annotations from [Inversify Express Utils](https://github.com/inversify/inversify-express-utils).
@@ -30,9 +30,10 @@ Just try it out and give us some feedback or whishes for new features.
3030
- **Fast Database Building** with simple migration and seeding from [Knex](http://knexjs.org/).
3131
- **Simplified Database Query** with the ORM of [Knex](http://knexjs.org/) called [Bookshelf](http://bookshelfjs.org/).
3232
- **Clear Structure** with controllers, services, repositories, models, middlewares...
33-
- **Easy Exception Handling** with our own simple classes. You will see.
33+
- **Easy Exception Handling** with our own simple and easy to adopt logic. You will love it.
3434
- **Easy Data Seeding** with our own factories.
35-
- **Custom Commands** are also available in our setup and really easy to use.
35+
- **Custom Commands** are also available in our setup and really easy to use or even extend.
36+
- **Scaffolding Commands** will speed up your development tremendously as you should focus on business code and not scaffolding.
3637
- **Smart Validation** thanks to [class-validator](https://github.com/pleerock/class-validator) with some nice annotations.
3738
- **API Documentation** thanks to [swagger](http://swagger.io/).
3839
- **API Monitoring** thanks to [express-status-monitor](https://github.com/RafalWilinski/express-status-monitor).
@@ -49,9 +50,9 @@ Just try it out and give us some feedback or whishes for new features.
4950
* `fork` this repo
5051
* `clone` your fork
5152
* `cp .env.example .env` to copy the example .env file and enter your database connection
53+
* Create a new database. You will find the name in the .env file.
5254
* Run `npm run setup` or enter the following commands manually:
5355
* `yarn install` to install all dependencies and typings.
54-
* Create new database. You will find the name in the .env file.
5556
* `npm run db:migrate` to create the schema.
5657
* `npm run db:seed` to insert some test data.
5758
* `npm run serve` to start the application.
@@ -72,18 +73,16 @@ All script are defined in the package.json file, but the most important ones are
7273
* There is also a vscode task for this called `lint`.
7374

7475
### Tests
75-
* Run the unit tests using `npm test`.
76+
* Run the unit tests using `npm test` (There is also a vscode task for this called `test`).
7677
* Run the black-box tests using `npm run test:black-box` and don't forget to start your application and your [Auth0 Mock Server](https://github.com/hirsch88/auth0-mock-server).
77-
* There is also a vscode task for this called `test`.
7878

7979
### Running in dev mode
8080
* Run `npm run serve` to start nodemon with ts-node, to serve the app.
8181
* The server address will be displayed to you as `http://0.0.0.0:3000`
8282

8383
### Building the project and run it
84-
* Run `npm run build` to generated all JavaScript files from the TypeScript sources. After this step you can deploy the app to any server.
85-
* There is also a vscode task for this called `build`.
86-
* To start the builded app use `npm start`.
84+
* Run `npm run build` to generated all JavaScript files from the TypeScript sources. After this step you can deploy the app contained in `dist` to any server (There is also a vscode task for this called `build`).
85+
* To start the builded app located in `dist` use `npm start`.
8786

8887
### Database
8988
* Run `npm run db:migrate` to migrate schema changes to the database
@@ -95,7 +94,7 @@ All script are defined in the package.json file, but the most important ones are
9594
* To run your own created command enter `npm run console <command-name>`.
9695
* This list all your created commands `npm run console:help`.
9796

98-
### Generating Commands
97+
### Scaffolding Commands
9998
All the templates for the commands are located in `src/console/templates`.
10099

101100
* `npm run console make:resource <file>` - Generates a controller, service, requests, repo, model and a migration with CRUD operations.
@@ -120,7 +119,7 @@ $ npm run console make:model user
120119

121120
## IoC
122121
Our IoC automatically looks through the `controllers`, `listeners` , `middlewares`, `services`,
123-
`repositories` and `models` folders for files to bind to our IoC - Container, so you have nothing to do.
122+
`repositories` and `models` folders in `src/api/` for files to bound automatically into the IoC - Container, so you have nothing to do.
124123

125124
**However it is very important to keep the naming right, because otherwise our IoC will not find your
126125
created files!!**
@@ -133,8 +132,8 @@ The route prefix is `/api` by default, but you can change this in the .env file.
133132

134133
| Route | Description |
135134
| ----------- | ----------- |
136-
| **/info** | Shows us the name, description and the version of the package.json |
137-
| **/docs** | This is the Swagger UI with our API documentation |
135+
| **/api/info** | Shows us the name, description and the version of the package.json |
136+
| **/api/docs** | This is the Swagger UI with our API documentation |
138137
| **/status** | Shows a small monitor page for the server |
139138

140139
## Project Structure
@@ -172,9 +171,9 @@ The route prefix is `/api` by default, but you can change this in the .env file.
172171
* [Microsoft/TypeScript-Node-Starter](https://github.com/Microsoft/TypeScript-Node-Starter) - A starter template for TypeScript and Node with a detailed README describing how to use the two together.
173172
* [express-graphql-typescript-boilerplate](https://github.com/w3tecch/express-graphql-typescript-boilerplate) - A starter kit for building amazing GraphQL API's with TypeScript and express by @w3tecch
174173
* [aurelia-typescript-boilerplate](https://github.com/w3tecch/aurelia-typescript-boilerplate) - An Aurelia starter kit with TypeScript
175-
* [Auth0 Mock Server](https://github.com/hirsch88/auth0-mock-server)
174+
* [Auth0 Mock Server](https://github.com/hirsch88/auth0-mock-server) - Useful for black-box testing or faking an oAuth server
176175

177-
## Documentations
176+
## Documentations of our main dependencies
178177
* [Express](https://expressjs.com/)
179178
* [Knex](http://knexjs.org/)
180179
* [Bookshelf](http://bookshelfjs.org/)
@@ -190,4 +189,4 @@ The route prefix is `/api` by default, but you can change this in the .env file.
190189
[MIT](/LICENSE)
191190

192191
---
193-
Made with ♥ by Gery Hirschfeld ([@GeryHirschfeld1](https://twitter.com/GeryHirschfeld1)) and [contributors](https://github.com/w3tecch/express-typescript-boilerplate/graphs/contributors)
192+
Made with ♥ by w3tech ([w3tech](https://github.com/w3tecch)), Gery Hirschfeld ([@GeryHirschfeld1](https://twitter.com/GeryHirschfeld1)) and [contributors](https://github.com/w3tecch/express-typescript-boilerplate/graphs/contributors)

0 commit comments

Comments
 (0)