Typescript seed project for developing a REST API. This project includes the base configuration for developing and running Typescript apps running with ExpressJS.
After installing the Docker CLI tool, now you're ready to start working with typescript-expressjs app.
git clone https://github.com/sandovaledwin/typescript-expressjs
cd typescript-expressjs
Now, you're ready for creating the new typescript-expressjs Docker Image in your computer.
docker build -t typescript-expressjs:8.9.1 .
Before to run the project you must install all the node modules dependencies.
docker run -it --rm --name backend -w /app -v $(pwd):/app -p 3000:3000 typescript-expressjs:8.9.1 npm install
docker run -it --rm --name backend -w /app -v $(pwd):/app -p 3000:3000 typescript-expressjs:8.9.1 npm run start
In order to verify that the project is running ok, you'll need to open the next url in the browser.
http://localhost:3000
For running the test cases written in Jasmine Framework, you'll need to type the next command:
docker run -it --rm --name backend -w /app -v $(pwd):/app -p 3000:3000 typescript-expressjs:8.9.1 npm run test
If you want to create the documentation for all the project code, please just type the next command.
docker run -it --rm --name backend -w /app -v $(pwd):/app -p 3000:3000 typescript-expressjs:8.9.1 typedoc --out doc/ src/ --module commonjs
If you find experimentalDecorators Typescript warning messages, please add the next line to your vscode settings. You can read more about it, in the next link.
{ "typescript.tsdk": "node_modules/typescript/lib" }