Nestjs
Nest (NestJS) is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with and fully supports TypeScript (yet still enables developers to code in pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming). Check out their official documentation here
Deploy a NestJS App
-
Fork/Clone this Hostless-NestJS-Example repo from github
-
Click on 'Create New App'
-
Choose a suitable app name
-
Choose your github account
-
Choose the forked github repo/the cloned remote repo
-
Choose a build system
- 'Detect automatically with Nixpicks' - automatically detects the programming language and builds the app
- 'Docker' - looks for a Dockerfile in the root of the project and build based on the instructions
-
Input a start command(optional) - By default uses
yarn start
-
The PORT environment variable is set by Hostless but add
process.env.PORT
in your main.ts file -
The HOST environment variable should be set to '0.0.0.0' but add
process.env.HOST
in your main.ts file
Sample configuration
Example project
An example project is hosted on https://hostless-nestjs-example.hostless.app/
Note
- You may need to increase the memory of the app in the settings page. NestJS app may not run with 128MB memory allocated to it.