Skip to content

zach-j-dev/nestjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Architect Logo

A dynamic microservices framework for building, connecting, and deploying cloud-native applications.


Running NestJS on Architect

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

Running locally

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"
}'

About

for ui-conversion testing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published