Skip to content

Latest commit

 

History

History
76 lines (47 loc) · 2.34 KB

File metadata and controls

76 lines (47 loc) · 2.34 KB

Web prototype tools

Netlify lets you link a GitHub, GitLab, or Bitbucket repository to a site. Each time you push to your Git provider, Netlify runs a build with your tool of choice and deploys the result to our powerful CDN.

ngrok allows you to expose a web server running on your local machine to the internet. Just tell ngrok what port your web server is listening on.

  1. Download ngrok and connect to your account
  2. Run ngrok http 3000 to expose a local webserver

run surge from within any directory, to publish that directory onto the web.

sudo npm install --global surge

surge build/

How to Deploy Express on Now.sh

1 . Add now.json in your ExpressJs project dirctory

{
  "version": 2,
  "builds": [{ "src": "server.js", "use": "@now/node-server" }],
"routes": [{
    "headers": {
        "Access-Control-Allow-Origin": "*",
        "Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, OPTIONS",
        "Access-Control-Allow-Headers": "X-Requested-With, Content-Type, Accept"
    },
    "src": "/.*",
    "dest": "/server.js"
}]
}
  1. Run now to deploy your app
  • Instant Deployment with Git push - build of your application is performed by Heroku using your build scripts
  • Plenty of Add-on resources (applications, databases etc.)
  • Processes scaling - independent scaling for each component of your app without affecting functionality and performance
  • Isolation - each process (aka dyno) is completely isolated from each other
  • Full Logging and Visibility - easy access to all logging output from every component of your app and each process (dyno)

https://stackoverflow.com/a/14081822

Static websites on Amamzon S3

manual steps:

  1. Create a S3 bucket and set it as a public static website

  2. Upload your html files to the S3 bucket

  3. Create a SSL certificate in AWS certificate mananger

  4. Create a AWS CloudFront to point to the S3 bucket and use the SSL certificate

  5. Create an A record in AWS Route53 to point to the CloudFront point