Re-coding past projects and deploying websites

npm install gh-pages --save-dev
{
"homepage": "http://mikeshahin.github.io/portfolio",
"name": "portfolio",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^12.8.3",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "4.0.3",
"web-vitals": "^1.1.2"
},
...
"scripts": {
"predeploy": "npm run build",
"deploy": "gh-pages -d build",

"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
npm run deploy
npm run deploy

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Spring Cloud Azure 4.0 Quick Review

Processing large XML files

Two more things to know when working as programmer — an angry approach (part 2)

There is a SMART way to write software requirements

A MQTT controlled Raspberry Pi Zero nightlight and white noise machine

How to Retrieve a GraphQL Schema

AWS CDK — Setup the CDK & Create an S3 Bucket on the Fly and Upload Files to it Dynamically

Accessing Data with Spring Data JPA and MySQL

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
gobias101

gobias101

More from Medium

Early Access to NakaVerse

DisCas Application Released on Metaverse

A Guide on how to develop NFT game like Gods Unchained