8

Deploy your Nodejs + Auth0 REST API to Cyclic.sh under 4 minutes

 2 years ago
source link: https://dev.to/_iametornam/deploy-your-nodejs-auth0-rest-api-to-cyclicsh-under-4-minutes-j8h
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Deploy your Nodejs + Auth0 REST API to Cyclic.sh under 4 minutes

Deploying APIs can sometimes be a pain in the butt when your service provider overcomplicates the deployment and setup process. This short article will demo how to deploy your Restful Nodejs application to Cyclic.sh in less than 4 minutes.

Yes!, you heard right, less than 4 minutes🔥😱😱.

Cyclic is a provider that helps you Launch(launch what? be specific about what it'll launch) in seconds. Push your code to Github and let the CI/CD (continuous integration/continuous delivery) integration trigger and deploy your service onto a global infrastructure in seconds. No cryptic CloudFormation errors. No mysterious API Gateway errors. No YAML parse errors. No hunting for CloudWatch log groups. No wasted time.

Important!
I already have my Nodejs Auth0 backend done.

To follow along with this project, clone the repo from here.

Deployment Demo
To deploy your codebase, follow the following steps:
The first thing you must do is create a repository on github.com for your project and push your code.

Next, signup to Cyclic.sh. The signup process is seamless, and all you need is to signup using your Github account.

After successful signup, you will see a dashboard; where all the magic happens. You can locate the docs at the top right corner, just right before the profile.

Now you need to deploy your code. Click the "deploy" button (green button) and select the "Link you own" tab.

Search for the repo you want to deploy, in your case "nodejs-auth0," and select it and connect it to your Github account.

At the prompt, you need to confirm your Github access, and after confirming, all you have to do is to approve and install, and that's it 🎉

Once you approve and install, the deployment process will start. 2–3mins should do it 🎊🎉🎊🎉🎊🎉

The final step is to set your environment variables on the dashboard. The dashboard for your project looks like this.

This is a ".env" file; you can also include those configurations on the dashboard by clicking on "Variables." After this configuration, everything should be up and running 🔥

Deploying new changes
After all the setups and configurations, to deploy new changes, push your code to Github, and Github actions will do the rest 😀😉

Conclusion
Deploying a RESTful API shouldn't be hectic and cyclic.sh has made sure deploying your backend code to the cloud is a simple as possible.

If you find any difficulty in the deployment process, you can reach out to the cyclic.sh team on discord.

Do well to follow me on Twitter and LinkedIn to connect.

originally publish on medium.com


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK