Skip to content

Commit 79efa1a

Browse files
authored
Update README.md
1 parent 5f64d95 commit 79efa1a

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,19 @@ You can fill out most of your information in /src/configs.js to autofill most of
3434

3535
### Projects
3636

37+
1) If you're manually pushing the build files to your hosting service like AWS S3 or Firebase -
38+
3739
After running npm build, create a 'projects' folder in the build folder, then create another folder for the project, and drop other React build files in there or any static files. Then, link the file path to the project from the <a> tag used in the projects section.
3840

3941
ex. build/projects/calculator/index.html
4042

41-
For deploying react projects inside the portfolio, there's a special configuration needed. Before building the project app, add below line to the package.json file.
43+
2) If you're using automated deploy process such as Netlify -
44+
45+
Same idea as above, but you have to manually copy over the static files into the build folder after the build process completes. In your Netlify build command, you can use the `cp -r` command - ex. `yarn build && cp -r ./calculator ./build && cp -r ./sgt ./build`. This will copy over your project files after the build process completes.
46+
47+
NOTE - FOR BOTH 1) and 2)
48+
49+
For deploying react projects inside the portfolio, there's a special configuration needed. Before building the project app, add below line to your project's `package.json`.
4250

4351
* "homepage": "https://YOUR_DEPLOYMENT_LINK.com/YOUR_PROJECT_FOLDER"
4452

@@ -48,9 +56,7 @@ Refer to [this](https://facebook.github.io/create-react-app/docs/deployment#buil
4856

4957
### Resume
5058

51-
After running npm build, drop resume.pdf in the folder before deploying.
52-
53-
If you want to structure the folders differently, feel free to change up the <a> tags in the template respectively.
59+
Place your `resume.pdf` file somewhere in the repo, (ex. `src/`) and import the file as a variable and set it as the `href` for the resume buttons. Refer to [this](https://stackoverflow.com/a/49882656/8711377) post for exactly what it looks like.
5460

5561
### Contact/Email
5662

@@ -70,7 +76,7 @@ If you want to structure the folders differently, feel free to change up the <a>
7076

7177
### Deploying
7278

73-
I like to use Firebase for my deployments, because I usually separate my frontend and backend. But you're free to deploy it anywhere you'd like. Just make sure to drop in your resume and projects before deploying.
79+
~I like to use Firebase for my deployments, because I usually separate my frontend and backend. But you're free to deploy it anywhere you'd like. Just make sure to drop in your resume and projects before deploying.~ Netlify makes the whole process a lot easier. Make sure to refer to 2) above to deploy your projects properly.
7480

7581
## Customizing and Decorations
7682

0 commit comments

Comments
 (0)