Files
archived-starters/javascript/serverless
Jake Runzer 07b4eb1e20 Update JavaScript examples to latest Railway (#14)
* update serverless pg example
* update nextjs example
* update prisma example
2020-10-07 20:17:31 +01:00
..
2020-09-11 19:02:13 +01:00

serverless

This project is intended to be deployed on Vercel, Netlify, etc

It makes use of a railway build command which should only be used in production, during the build, on those sites

It is NOT intended for local use, and requires a production access token

If you are not planning to deploy to Vercel, Netlify, etc, please just use any of the regular library templates since they'll have no prioriatary railway library lockin' (And will work with all your Postgres/Mongo/etc libraries out of the box)

Usage

  • Install dependencies yarn install
  • Init a railway project yarn railway init
  • Open the project in the Railway dashboard yarn railway open
  • Install the Postgres plugin from the Railway dashboard
  • Run the code yarn start

The time should be printed

So easy!

Configuring your own project