
No Comments Yet
Be the first to share your thoughts and start the conversation.
Be the first to share your thoughts and start the conversation.
How did you manage to remove the blur property and reach here?
Upgrading gives you access to quizzes so you can test your knowledge, track progress, and improve your skills.
By logging in, you'll unlock full access to this and other free tutorials on JSM Pro.
Why? Logging in lets us personalize your learning experience, track your progress, and keep you in the loop with new workshops, coding tips, and platform updates.
You'll also be the first to know about upcoming launches, events, and exclusive discounts.
No spam—just helpful content to level up your skills.
If that sounds fair, go ahead and log in to continue →
Enter your name and email to get instant access
In this lesson, we explore the steps to deploy a healthcare application using GitHub and Vercel. Starting from repository creation to resolving TypeScript build errors, this guide walks through the essential points for successful deployment.
JSM_care_pools
.git init
, then add and commit files before pushing to GitHub..env.local
.next.config.mjs
to ignore TypeScript and ESLint build errors temporarily.00:00:00 So going back right here, let's stop it from running by pressing control C and then clearing out the terminal.
00:00:06 You can head over to GitHub forward slash new, or just click create a new repo and give it a name.
00:00:12 Something like JSM underscore care pulls.
00:00:16 or something like healthcare would be good as well.
00:00:19 I'll choose to make it public and click create repository.
00:00:23 After that, we'll have to follow the steps right here to get it up to our repo by saying git init, git add dot after git init,
00:00:33 then git commit-m first commit, then we can copy the rest, git branch-m main, git remote add origin, and git push u origin master,
00:00:48 or in this case, main.
00:00:50 It's still a habit.
00:00:51 If you do that and reload, you should be able to see your repo right here.
00:00:55 And if you can see it there, Vercell should be able to see it too.
00:00:59 We'll use Vercell to get our application deployed.
00:01:02 So head over to your Vercell dashboard and add a new project.
00:01:07 import it from a Git repository and add the environment variables right here.
00:01:13 You can find them under your .env.local.
00:01:16 And here's a pretty cool trick.
00:01:17 Just copy it and just paste it.
00:01:20 It's going to automatically recognize the key and value pairs and add all of these environment variables for you.
00:01:27 Next, click deploy.
00:01:29 We have done a lot of changes.
00:01:31 And in real life, I would recommend that you make more branches, more commit messages, and more pushes more often.
00:01:39 In this case, we have built out the entire application, which is good as well, but I'm sure that something will go wrong.
00:01:46 It has to.
00:01:47 Most likely some kind of a TypeScript warning.
00:01:49 So let's give it a minute and we'll fix whatever the issue is.
00:01:53 And we have an error in the build logs and it does seem like we're missing a specific type.
00:01:59 So to fix that, we can go back to our repo and head over to next.config.mjs.
00:02:06 Here under the next config object, we can say TypeScript and then for TypeScript, we can say ignore build errors is set to true.
00:02:16 And we can repeat the same thing with eslint where we can say ignore during builds is set to true.
00:02:23 And you can just commit this single push by saying git add dot git commit dash m disable TypeScript for the time being and git push.
00:02:37 This will push it, which will automatically make Vercell try to do another build.
00:02:43 So you can head over to your profile and then you'll be able to see a new project.
00:02:49 And if you go to deployments, you'll be able to see a new deployment already running.
00:02:53 Let's hope that this time it goes through.
00:02:56 There we go.
00:02:57 The build has succeeded.
00:02:59 So we can go back to the project and click visit.
00:03:03 This time we are under a specific domain, jsmcarepools.versel.app and our app has been successfully deployed.
00:03:11 I won't go ahead and test out the entire procedure of creating a new patient, but I will test out the admin interface.
00:03:19 So here we need to add our verification and I believe it was 123456. And we are in.
00:03:29 We can see all of the same data as before.
00:03:32 And as the admin, we still have the permission to schedule appointments or cancel them.
00:03:38 And as you can see, that is working perfectly.
00:03:41 I'll change it for Adrian as well to see if Adrian will get an SMS.
00:03:46 And if I change one, I got an SMS notification.
00:03:50 This is great.