View the page at eugene-sang.web.app
This is a complied version of the raw portfolio
- React
- Firebase
- GitHub
- Node.js
- npm
-
CLI environment
- Window
Command Prompt
orPowershell
- Linux
Terminal
- Mac
Terminal
- Window
-
Firebase account firebase.com
-
Firebase active project
-
node --v
-
npm - bundled with nodejs
npm --v
After creating a web project in firebase,
-
Go to project settings
-
Scroll down to SDK setup and configuration
-
Select the CDN radio button
-
Copy the code provided excluding the script tags
-
Paste that code to script.js
-
Cut your fiebase config to secrets.js and remember to import it in
script.js
export const firebaseConfig = { apiKey: "", authDomain: "", projectId: "", storageBucket: "", messagingSenderId: "", appId: "", measurementId: "" };
We have the source code for our built app at Eugene Sang - Portfolio.
-
Clone the project
git clone https://github.com/eugenesang/portfolio.git
or
-
Navigate to the project folder
cd portfolio
-
Install packages
npm install
or
yarn install
-
Customise your portfolio.
-
Test it in local dev
npm start
-
If everything works. Everything looks good. Build the app
npm run build
-
The build version of the app will be in the folder
./build
-
Delete everything in this folder except script.js
-
Copy the content of the build folder to this folder.
-
Edit the head of index.html to include
<script type="module" src="./script.js" defer></script>
-
Test the code using live server
live-server . --port=8080
-
Use you browser dev tools to test the app.
-
Install the Firebase
CLI
if you haven't already via npm by running the following command:npm install -g firebase-tools
-
Log into Firebase using your Google account by running the following command:
firebase login
-
Initialize a firebase project and follow the instructions provided. We only need analytics for this app, you may select only that
firebase init
-
Deploy
firebase deploy
Note you can get more instructions from firebase official docs
Congratulations! You are now live.