Posts

Showing posts from February, 2021

How to Deploy Nodejs and Express Backend service on Netlify

Image
Hosting Nodejs and Express backend api service on netlify is completely free and easy to use step 1 : Create folder netlifyHosting               mkdir netlifyHosting                  cd n etlifyHosting Step 2 : Create Node project using        npm init -y step 3 : Install express        npm install express --save    step 4 : Install serverless-http               npm install serverless-http --save  step 5 : Install netlify-lambda        npm install netlify-lambda --save step 6 : Create file netlify.toml and create below code in it              [build]      functions="functions" step 7 : Edit package.json file        a) "main": "./src/api.js"               b) "scripts": {   ...