https://github.com/rqbazan/resume
📃 My resume powered by ReactPDF
https://github.com/rqbazan/resume
pdf react resume serverless
Last synced: 3 months ago
JSON representation
📃 My resume powered by ReactPDF
- Host: GitHub
- URL: https://github.com/rqbazan/resume
- Owner: rqbazan
- Created: 2020-02-27T04:21:46.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-02-26T19:12:10.000Z (8 months ago)
- Last Synced: 2025-05-06T21:49:42.116Z (6 months ago)
- Topics: pdf, react, resume, serverless
- Language: TypeScript
- Homepage: https://resume.rcrd.space
- Size: 683 KB
- Stars: 16
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# resume 📃
- **Framework**: [ReactPDF](https://react-pdf.org)
- **Database**: [Airtable](https://airtable.com)
- **Development**: [Vite.js](http://vitejs.dev)
- **Deployment**: [Vercel](https://vercel.com)
## Overview
- `scripts/build.js`: Build the server entry code to be imported by the serverless function. Powered by [esbuild](https://esbuild.github.io).
- `api/resume.ts`: Serverless function that gets my information from an Airtable base and responses the PDF document.
- `src/app`: Contains the ReactPDF document app.
- `src/browser`: The entry level for Vite.js, it uses an static [data.json](./src/data/) to populate the app.
- `src/server`: The entry level for Serveless, it uses a [function invocation](./src/server/main.tsx#L5) to populate the app.
- `src/react-pdf.ts`: Re-exportation of ReactPDF because of [a bug](https://github.com/vitejs/vite/issues/3405).
## Running
### Prepare
```bash
git clone https://github.com/rqbazan/resume.git
cd resume
yarn
```
### Development
```bash
yarn dev:web
```
### Production _similar_
1. Create a `.env` file similar to [`.env.example`](./.env.example).
2. Set `NODE_ENV=production` in your terminal session.
```bash
vercel dev
```