Hi Webmasters !
Today I show you how to deploy your webapp on a serverless service.
After, many thank for your support in my last post !
https://dev.to/simerca/make-a-fast-auto-graphql-server-with-nodejs-and-postgres-in-5-minutes-146h
Let's started !
Did you know Vercel ?
Vercel.app is a service who sync your Github / Gitlab repo for easy deployment.
When you push on the master Vercel rebuild you'r project and deploy if passed the build step.
create your account
Vercel.app
The first step it's install Vercel CLI with this command:
npm i -g vercel
Next Create a Node project, like a VueJS project.
exemple
vue create my-awesome-app
inside your project set the repo:
exemple
git remote add origin https://gitlab.com/UserName/MyAwesomeProject
git add .
git commit -m "initial release"
git push -u origin master
now inside your app project
vercel
yes just this command without options can make the process of deployment easily
Vercel is awesome because you can set your domain for free ,but by default he give you a domain like xxxx.vercel.app for testing.
you can view log inside your dashboard
https://vercel.com/dashboard
Enjoy the powerful of serverless
Top comments (3)
Now, default branch in Github is
main
notmaster
.Did you know another serverless services ?
Github Pages with Github Action