You enter some basic info on a web form and ChatGPT (OpenAI) creates your CV, outputting it as a PDF file
- The
.env
file.npm start
will touch the.env
file at the root of the server app, which is the./server/
directory (it creates it if it is not there). Then, add an API key from OpenAI's website to the.env
file. The format is:You can also add inOPENAI_API_SECRET_KEY=enter-your-actual-key-here
PORT
andHOST
keys like this:If you do not add theseHOST=localhost PORT=4000
HOST
andPORT
keys the code will default tolocalhost
and4000
, respectively. If you do not add the OpenAI API secret key then Nodemon, which runs the server, will fail to start properly but will not exit. If you put the key into the.env
file and save theindex.js
file, Nodemon will restart successfully. npm start
will create a new, empty./server/uploads/
directory where your pictures will be uploaded.
Start the server first by cd
'ing into the ./server/
directory:
cd ./server/
npm start
... and then start the client:
cd ../client/
npm run build
serve -s build
Then head over to HTTP://localhost:3000 in your browser.