This is my online resume. Made with express, json-resume and my french version of the stackoverflow theme. The conversion to pdf is done with puppeteer. The database is a postgresql database.
The deployment is done via vercel.
GET /
: Get the resume in the html format.GET /pdf
: Get the resume in the pdf format.GET /json
: Get the resume in the json format.
You can also use it for build your own resume :
POST /
: Post a json resume, and get the html resume.POST /pdf
: Post a json resume, and get the pdf resume.
Here some cheatsheet for the api (-L because my vercel configuration requires it) :
# GET /
$ curl -L https://cv.nderousseaux.fr > resume.html
# GET /pdf
$ curl -L https://cv.nderousseaux.fr/pdf > resume.pdf
# GET /json
$ curl -L https://cv.nderousseaux.fr/json > resume.json
# POST /
$ curl -L -X POST -H "Content-Type: application/json" -d @resume.json https://cv.nderousseaux.fr > resume.html
# POST /pdf
$ curl -L -X POST -H "Content-Type: application/json" -d @resume.json https://cv.nderousseaux.fr/pdf > resume.pdf
If you want to see the schema of the json resume, you can see at the jsonresume.org project.
$ npm install
$ mv .env.example .env
Fill the .env
file with your own values. Then, init the database with the struct.sql
file :
$ plsql -U <user> -d <database> -f struct.sql
And finally, fill the database with your own data.
$ npm run dev
#or, with vercel
$ vercel dev
$ vercel --prod
Or simply push to the main branch, if you have the vercel integration enabled.