Typescript seed project for developing a REST API. This project includes the base configuration for developing and running Typescript apps running over HapiJS server.
After installing the Docker CLI tool, now you're ready to start working with typescript-backend app.
git clone https://github.com/sandovaledwin/typescript-backend
cd typescript-backend
Now, you're ready for creating the new typescript-backend Docker Image in your computer.
docker build -t typescript-backend: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-backend:8.9.1 npm install
docker run -it --rm --name backend -w /app -v $(pwd):/app -p 3000:3000 typescript-backend:8.9.1 npm run start
In order to test that the project is running ok, you'll need to open the next url in the browser.
http://localhost:3000
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-backend:8.9.1 typedoc --out doc/ src/ --module commonjs