Reactive-Resume/DEPLOYMENT.md

3.0 KiB

Deployment

This is a guide on how to build the source from scratch, along with setting up Firebase and related cloud functions to be able to export PDFs just like the original deployment of rxresu.me.

Requirements

  • A Firebase project
  • Works on both Linux, macOS and Windows
  • Requires Node.js & NPM installed on the machine

Setting up Firebase

  1. Create a new Firebase project by visiting Firebase Console and clicking on Add Project

Screenshot 2021-03-13 at 10 19 10 AM

  1. Disable Google Analytics, or keep it enabled as per your requirements. Most people wouldn't need it.

Screenshot 2021-03-13 at 10 19 23 AM

  1. Wait until Project is created, then click on Continue

Screenshot 2021-03-13 at 10 21 30 AM

  1. Navigate to Realtime Database, and click on Create Database

Screenshot 2021-03-13 at 10 28 57 AM

  1. Select any location that's nearby to you, and most importantly, create the database in Test Mode and click on Enable

Screenshot 2021-03-13 at 10 30 01 AM

  1. Go back to Project Overview and click on Web and skip through every other step by clicking Next.

Screenshot 2021-03-13 at 10 27 34 AM

  1. Copy configuration variables of your project, or keep this page open as you will need it later

ezgif com-gif-maker

Cloning the Repository

  1. Run this command on your machine's terminal or Command Prompt
git clone git@github.com:AmruthPillai/Reactive-Resume.git
Screenshot 2021-03-13 at 10 38 16 AM
  1. Copy the file .env.example to .env and start editing the file
cp .env.example .env
Screenshot 2021-03-13 at 10 50 21 AM
  1. Copy configuration variables from last step to the .env file, it's fine to have FIREBASE_MEASUREMENTID empty if you had Google Analytics disabled.
Screenshot 2021-03-13 at 10 51 53 AM
  1. Run npm install on the terminal/command prompt

  2. After that's done, run npm run build and allow some time for the process to build