Hosting Node.js backend using Fastify and Typescript on ICP

Our company’s website is currently hosted on AWS, with the backend built using Node.js, Fastify, and TypeScript. We are planning to migrate our backend to the Internet Computer (ICP) and would appreciate guidance on the process.

Specifically, we need help with:

  • Steps to deploy a Fastify-based Node.js backend on ICP
  • Required configuration changes for ICP compatibility
  • Handling database and file storage on ICP
  • Best practices for performance, security, and scalability

Could anyone provide a detailed guide or direct us to the best resources for this migration? Any specific considerations for serverless execution, data persistence, or authentication on ICP would also be helpful.

Hey :waving_hand:

I am not aware of a good “migration path” to move your existing backend over to ICP. Is there a specific need for this migration or do you just want to explore ICP? If you just want to explore it might be better to start simple with non-critical backend services until you are more familiar with all the details.

Regarding best practices in general I recommend to take a look at the docs: Developer best practices: General | Internet Computer

Having a JavaScript background, you might want to take a look at the Azle CDK:

Azle is still in beta though.

Regarding authentication I would also recommend to check the docs first: Authentication services | Internet Computer

2 Likes