You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+52-40Lines changed: 52 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,74 +36,86 @@ DevFolio is a modern, responsive, and customizable portfolio template for develo
36
36
37
37
### Personal Information
38
38
39
-
Edit the `personal-info.md` file in the `content` directory to update your name, role, and other personal details.
39
+
Edit the [personal-info.md](./src/content/personal-info.md) file in the `content` directory to update your name, role, and other personal details.
40
40
41
41
### Projects
42
42
43
-
Add or modify projects in the `projects.md` file in the `content` directory. Each project should have a title, description, image, and link.
43
+
Add or modify projects in the [projects.md](./src/content/projects.md) file in the `content` directory. Each project should have a title, description, image, and link.
44
44
45
45
### CV/Resume
46
46
47
-
Update your experience, education, and skills in the `cv.md` file in the `content` directory.
47
+
Update your experience, education, and skills in the [cv.md](./src/content/cv.md) file in the `content` directory.
48
48
49
49
### Social Links
50
50
51
-
Edit the `social-links.md` file in the `content` directory to add or modify your social media links.
51
+
Edit the [social-links.md](./src/content/social-links.md) file in the `content` directory to add or modify your social media links.
52
52
53
-
## Google Sheets Integration
53
+
## Portfolio Configuration with Google Sheets for Contact Form (optional)
54
54
55
-
To connect the contact form to Google Sheets:
55
+
This guide explains how to set up Google Sheets to use it with the contact form in your portfolio and configure the necessary environment variables in Vercel.
56
56
57
-
1. Create a new Google Sheet
58
-
2. Go to Tools > Script editor
59
-
3. Replace the content of the script editor with the following code:
57
+
### Setting Up Google Sheets for Your Portfolio
60
58
61
-
```javascript
62
-
functiondoPost(e) {
63
-
var sheet =SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
- Go to the [Google Developers Console](https://console.developers.google.com/).
61
+
- Create a new project (or select an existing one).
62
+
- Enable the **Google Sheets API** and **Google Drive API** for this project.
63
+
- In "Credentials," create a **Service Account** and download the credentials JSON file.
69
64
70
-
4. Deploy the script as a web app:
71
-
- Click on "Deploy" > "New deployment"
72
-
- Select "Web app" as the type
73
-
- Set "Execute as" to your Google account
74
-
- Set "Who has access" to "Anyone"
75
-
- Click "Deploy"
76
-
5. Copy the provided URL for the web app
65
+
2.**Share Your Google Sheet**:
66
+
- Open your Google Sheet and share access with the service account email (`GOOGLE_CLIENT_EMAIL`) that you created in Step 1. Ensure that it has **Editor** permissions.
67
+
- Copy your spreadsheet ID from the URL (the part between `/d/` and `/edit`), which will be used for `GOOGLE_SHEET_ID`.
77
68
78
-
## Environment Variables
69
+
3.**Setting Up Environment Variables in Vercel**:
70
+
To enable Google Sheets functionality on Vercel, you need to configure the following environment variables.
79
71
80
-
Create a `.env.local` file in the root of your project with the following content:
-**Environment**: Select the appropriate environment (e.g., Production, Preview, Development).
85
81
86
-
Replace `your_google_script_url_here` with the URL you copied from the Google Apps Script deployment.
82
+
-**Variable Name**: `GOOGLE_CLIENT_EMAIL`
83
+
-**Value**: The service account email from Step 1.
84
+
-**Environment**: Choose the environment as needed.
87
85
88
-
## Deployment
86
+
-**Variable Name**: `GOOGLE_PRIVATE_KEY`
87
+
-**Value**: Copy the private key from your service account JSON file. Make sure to paste it exactly as it appears, without adding `\n` for line breaks if entering directly in Vercel.
88
+
-**Environment**: Select the desired environment.
89
89
90
-
You can easily deploy your portfolio using Vercel:
90
+
-**Variable Name**: `GOOGLE_SHEET_ID`
91
+
-**Value**: The ID of your Google Sheet.
92
+
-**Environment**: Select the appropriate environment.
91
93
92
-
1. Push your changes to your GitHub repository
93
-
2. Go to [Vercel](https://vercel.com) and sign in with GitHub
94
-
3. Click "Import Project" and select your repository
95
-
4. In the "Environment Variables" section, add the `NEXT_PUBLIC_GOOGLE_SCRIPT_URL` variable with your Google Apps Script URL
0 commit comments