4 ms·
Vercel basically makes frontend dev super easy. You can literally type in "vc" in your terminal (after installing their cli) and it'll build and deploy everythi
by sdan 6y ago
Vercel basically makes frontend dev super easy. You can literally type in "vc" in your terminal (after installing their cli) and it'll build and deploy everything you have locally in seconds (think React or Nextjs, a React framework).
You can also use their serverless functions; which add "backend" functionality to your existing frontends. You can deploy these serverless functions in a bunch of languages (see docs) but personally I've used them in Nextjs's baked-in functionality of api routes to basically add an endpoint for mutating/querying to/from my DB for example.
- paulintrognon 6y agoWhere would those DBs be deployed? I mean, can vercel host DBs or do you still have to figure out a way of host them yourself?
- sdan 6y agoYeah, you'd have to host them yourself. So suppose you have a basic webapp with users logged in a DB: Vercel(Frontend -> Serverless functions) -> DB
- neurostimulant 6y agoYou're supposed to use other hosted database vendor or your own database server if you need it. I don't think they offer any database service.
- moeamaya 6y agoWhat’s the recommended DB host? Does the Next community have a go to?
- jpbow 6y agoI've had success with FaunaDB, simple and cheap to get started and you get a GraphQL endpoint as well as their query language (FQL).
- dkryptr 6y agoI don't think there's an official recommendation. Any database host will work just fine. However if you want to optimize based on location, here are the regions where Vercel hosts: https://vercel.com/docs/edge-network/regions#routing https://vercel.com/docs/edge-network/regions#routing. So hosting a database in AWS in any of those regions probably makes the most sense.
- sdan 6y agoI use Heroku; gets the job done and is simple.
- theturtletalks 6y agoI personally have Caprover running on a $5/month DigitalOcean droplet where I can create DBs on the fly for small projects. I normally switch to a better hosted platform for bigger projects. Heroku is also good but the free plan is 10,000 rows and the next plan is $9/m.
- JMTQp8lwXL 6y agoFront end deployment, when done correctly, is already easy. S3 + Cloudfront and done: all your static assets are globally available everywhere with good response times in all major geographic areas.
- city17 6y agoI switched from S3 + Cloudfront to Vercel, simply because it's even easier.
- earthboundkid 6y agoFor being "easy" it actually is quite hard to find documentation on how to run an S3 website with CloudFront "properly". Amazon makes it very confusing to figure out that, e.g., web server mode is different than regular S3 mode. CF itself tries to get you to do the wrong thing. Plus you have to jump through hoops to make your bucket private but still give CF access to it. I was doing that wrong for years. How many multimillion dollar companies wouldn't be relevant if Amazon just fixed their freaking docs?