Deployment Fear is Real !!

Umang SaxenaUmang Saxena
2 min read

Why Deployment?

As a beginner, we are too much curious of how the apps are made available to the world, atleast I was.

Untill my 3rd Sem I had enough projects on my local system and github including some basic ones which I made while learning.

But wait…What next? Nobody Knows what I have made and nobody is that free to clone my git repo and run on local system.
This was the time I started exploring how deployment is done..What is a prodcution Environment, How it is managed..How Git and Github Helps in that, what are CI/CD pipelines.

Introduction to Cloud Database and its’ Need

The first challange as a beginner was to use a cloud DB that has a 24 hour uptime. Then I got introduced to MongoDb Atlas after a lot of Google Searches.

MongoDb Atlas

It is a database similar to mongodb on our local system, But it is managed on cloud and can be accessed anytime from anywhere just with right credentials.

The First Deployment Story

As a beginner, my first app to go for deployment was a react app which uses Public Weather Api for data fetch using a useEffect( ) react hook.

You can see that git repo here →

Takeaways as a Beginner

  1. Environment variables → This was the phase when i knew this name for first time. Basically these are the variables that are not pushed on to the github repo.

    This generally contains any sensitive data like database connection url, api keys,cloud services credentials etc.

  2. .gitignore file → This file has its own importance, not everything is meant to be published. The folders like node_modules, .env files etc are never puushed to git. These files are mentioned here in the .gitignore file.

  3. Build Command → This command is used to build the complete project. This is a default command but while deploying we have to add this command.

How to Overcome

The basic and easy method is to learn deployment is….JUST DO IT !!!

Methods to tackle

Take help from yt videos, Chatgpt and try to understand the steps of deployment.

For any queries,Guidance or any help I am just a message away !

Gmail- hanusaxena68@gmail.com

Linked In → Umang Saxena | LinkedIn

0
Subscribe to my newsletter

Read articles from Umang Saxena directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Umang Saxena
Umang Saxena