An open API service indexing awesome lists of open source software.

https://github.com/nullbeam/example-node-ts

Example - Node JS application with Typescript and OpenAPI
https://github.com/nullbeam/example-node-ts

express nodejs openapi typescript

Last synced: about 1 month ago
JSON representation

Example - Node JS application with Typescript and OpenAPI

Awesome Lists containing this project

README

          

# Example Node JS with TypeScript and OpenAPI

This project is an example, you can use for learning or as project template

## How to start

This project needs Node JS > 14.21.2, you can install it from https://nodejs.org/ and going to run the following commands:

1. Install dependencies
```bash
npm install
```

2. Run project as developer
```bash
npm run dev
```

3. Transform it to javascript to production environment
```bash
npm run build
```

Run the project and access the documentation at:

http://localhost:3000/swagger

![image](https://github.com/nullbeam/example-node-ts/assets/56894248/88bda0b2-7afe-4e78-b068-9b440ad69ac6)

### Aditional commands:

- For generate swagger docs without start project as developer
```bash
npm run swagger-autogen
```