mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-13 00:03:27 +10:00
Create DEPLOYMENT.md
This commit is contained in:
65
DEPLOYMENT.md
Normal file
65
DEPLOYMENT.md
Normal file
@ -0,0 +1,65 @@
|
||||
# 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](http://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](https://console.firebase.google.com/) and clicking on `Add Project`
|
||||
|
||||

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

|
||||
|
||||
3. Wait until Project is created, then click on Continue
|
||||
|
||||

|
||||
|
||||
4. Navigate to Realtime Database, and click on `Create Database`
|
||||
|
||||

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

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

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

|
||||
|
||||
### Cloning the Repository
|
||||
|
||||
1. Run this command on your machine's terminal or Command Prompt
|
||||
|
||||
```
|
||||
git clone git@github.com:AmruthPillai/Reactive-Resume.git
|
||||
```
|
||||
|
||||
<img width="550" alt="Screenshot 2021-03-13 at 10 38 16 AM" src="https://user-images.githubusercontent.com/1134738/111019919-3df43d00-83e8-11eb-8d6b-d9fe0cc74a3a.png">
|
||||
|
||||
2. Copy the file `.env.example` to `.env` and start editing the file
|
||||
|
||||
```
|
||||
cp .env.example .env
|
||||
```
|
||||
|
||||
<img width="317" alt="Screenshot 2021-03-13 at 10 50 21 AM" src="https://user-images.githubusercontent.com/1134738/111020166-ed7ddf00-83e9-11eb-9cbb-a8732243bbd5.png">
|
||||
|
||||
3. Copy configuration variables from last step to the .env file, it's fine to have `FIREBASE_MEASUREMENTID` empty if you had Google Analytics disabled.
|
||||
|
||||
<img width="696" alt="Screenshot 2021-03-13 at 10 51 53 AM" src="https://user-images.githubusercontent.com/1134738/111020217-3c2b7900-83ea-11eb-801d-d8719cf23608.png">
|
||||
|
||||
4. Run `npm install` on the terminal/command prompt
|
||||
|
||||
5. After that's done, run `npm run build` and allow some time for the process to build
|
||||
Reference in New Issue
Block a user