Step 1: Clone repository with the following command.
git cloneStep 2: Go to project directory and run
npm installStep 3: Now execute. ( npm run grunt command is for compiling the typescript
source code, you can check out gruntfile.js have all the configuration. )npm run gruntStep 4: Create images folder inside the dist folder
mkdir dist/imagesStep 5: Now run
npm run startStep 6: Click on this link to verify server is running properly
[http://localhost:8080/](http://localhost:8080/)Step 7: Here is the URL for file upload
http://localhost:8080/fileupload and pass multipart form data.
Brief information about Typescript files.
- server.ts in src folder -> In this file we export the Server class, this class will configure our express web application, REST API and routes.
- route.ts in src/routes/ folder -> This file will export the BaseRoute class, In this class you can define script for all routes which will be required. Method render() will invoke BaseRoute’s child class.
- index.ts in src/routes/ folder -> This class extends BaseRoute class, you can define route in create() method.
- routes() method in server.ts -> In this method we have created router instance of express.Router() and call the create() method of IndexRoute and passed router as a parameter.


