
A dynamic microservices framework for building, connecting, and deploying cloud-native applications.
This example will show you the use-case for using TypeScript on Architect leveraging the NestJS tutorial application – Users. In this example, we've written a component spec (the architect.yml file) that defines a component to run a TypeScript-based web application.
Learn more about the architect.yml file
Architect component specs are declarative, so it can be run locally or remotely with a single deploy command:
# Clone the repository and navigate to this directory
$ git clone https://github.com/architect-templates/nestjs.git
$ cd ./nestjs
# Register the component to the local registry
$ architect link .
# Deploy locally using the dev command
$ architect dev .Once the deploy has completed, you can reach your new service by going to https://api.localhost.architect.sh/users. In order to create a new user, you can use the command below:
curl --location --request POST 'https://api.localhost.architect.sh/users' --header 'Content-Type: application/json' --data-raw '{
"firstName": "test",
"lastName": "user"
}'