You enter some basic info on a web form and ChatGPT (OpenAI) creates your CV, outputting it as a PDF file
- The
.envfile.npm startwill touch the.envfile 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.envfile. The format is:You can also add inOPENAI_API_SECRET_KEY=enter-your-actual-key-herePORTandHOSTkeys like this:If you do not add theseHOST=localhost PORT=4000HOSTandPORTkeys the code will default tolocalhostand4000, 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.envfile and save theindex.jsfile, Nodemon will restart successfully. npm startwill 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.