Author Archives: manzoorulhassan

Unknown's avatar

About manzoorulhassan

Me

My Nissan Maxima

September 1999 to August 2020

I dropped it off at Wrench A-Part. This was very difficult. Which I am not totally surprised but yet at the same time I am a little.

The final mileage was 355,700ish – yes, I didn’t get to get to capture the exact mileage 😦 Given all my Odometer posts over the years you’d think I would have captured the final mileage.

I was planning to. But things don’t go as we plan. No, it’s not – “Things Don’t Always Go as Planned”. I am convinced “Things Never Go Exactly as You Plan, Never. Period”. Things Never go Exactly as we plan. But I digress. This is not what I am writing about. That’s another post for another time.

It was time to let go of the Maxima. This was the only new car I have ever bought. This was also the very first car I bought after my daughter was born.

– manzoor

Deploy React – on AWS

Deploy on to AWS EC2 running nginx

  1. ssh into the EC2 instance
  2. if npm is NOT installed, execute sudo apt install npm -y
  3. cd into <dev> dir
  4. git clone the repo
  5. cd into the repo
  6. execute npm install
  7. execute npm run build
  8. cp -R dist/* /var/www/<host>/html
  9. might have to re-launch nginx

– manzoor

React Hello World

Create the App

  1. cd into a new / clean dir
  2. execute – npx create-react-app <app_name>
  3. a new sub-dir with this app_name will be created
  4. cd into the new sub-dir with the new app_name
  5. execute npm start – this will eventually list a local URL Open a browser to this to verify the new app is running
  6. Edit the App.js file in src dir and clear most of the content and simply replace it with “Hello World”. The app should now show “Hello World” text.

Customize the App

  1. stop the app (at least for the next step)
  2. Add bootstrap (for CSS styling)
    • execute npm install bootstrap
  3. at this point can re-launch the app by executing npm run dev

– manzoor

Deploy on to AWS

Deploy on to Heroku

Life Back to “Normal”

Not sure we are all on the same page when we say, “can’t wait till things go back to normal”. Not saying I too have not have the same thought – I have. I am just not sure that my list of “normal” things that I am looking forward to may not quite be the same as your, or vice versa.

For me personally, working “remotely” was “normal” for a long time. So, no longer having to work remotely, would NOT be going back to normal.

– manzoor