Guides
...
Frameworks - Tools
Express JS

Using TypeScript

8min

You can use the framework to create web applications of your choice, for example Express.

This section is being reviewed and expanded.

Express.js provides simplicity and complete control over how you configure your server. It's ideal for creating lightweight APIs.

Initial Setup

  • Create a new Node.js project and install Express:
bash

  • Install the SDK
npm
yarn

  • Create a file named server.js in the root directory.

Creating the Endpoint

  • Add the following code to server.js
TypeScript

  • Start the server
Bash

  • Access the endpoint locally:
    • http://localhost:3000/metadata

Deploy to Production

You can deploy your Express app on platforms like:

  • Railway: Easy-to-use deployment platform.
  • Render: Offers a balance of simplicity and advanced features.



Updated 30 Nov 2024
Doc contributor
Did this page help you?