Building full-stack apps with Vercel, TypeScript, and React
Today I wanted to write how easy it is to develop a demo website from scratch and deploy it yourself for free. Vercel is a company seeking to improve the open-source community by providing hosting for various project types and frameworks. Complete with build testing and automatic deployment from GitHub. All of it being "pay as you need it", if no one comes to the site often, then you don't get charged. And other services exist like this one that can deploy things like databases for you to use and manage on a "pay as you need" system. Allowing for scalable cloud based webapps to be built easily and quickly.
If you use Next.JS, Vercel's personal framework for everything, deployment feels like magic and way more simpler than AWS or other code deployment services. You create the project, publish it to GitHub (private or public), then Vercel does the rest when you link your GitHub up and select the project. It's a seamless system that makes building websites easy, and will consider this for future projects.
This post assumes you have NPM and Git installed.
$ npx create-next-app --ts your_project_name
$ cd your_project_name
$ npm run dev
These three commands when entered into a console will create a project folder filled with template files to get started, then changes the current directory to it, then launches the development build. From there you can modify everything easily. I suggest using Visual Studio Code for development, with the GitHub extension. But you can use any editor you want.
Once you developed your website some, you can deploy it now and watch the site go live. Just sign up for Vercel's service and follow their instruction, and boom, done. They even allow for custom domains, so you can deploy whole services and websites with them. I really can't suggest this anymore as a web developer. This is a game changer for me because I'd have to buy the hosting and set it all up, but now it's all automated and I barely used my brain to deploy it.
If you want to learn more, you can do so from the masters behind utility, Vercel.