It uses the Next.js framework with React. Check out the tutorial or follow the instructions below to get set up.
Note: Where it says s123456 in these instructions, rename index.js to index-s(your student number).js This will make it a lot easier for us to accept your pull requests!
-
If you don’t have Node.js installed, install it from here (Node.js version >= 14.6.0 required)
-
Click the Fork button on the top-right hand corner of this page. This will create a version of this repository on your GitHub account.
-
Install GitHub Desktop or Git if you haven't already. Instructions on how to install GitHub Desktop can be found here..
-
Navigate into the project directory using the Node.js command prompt program.
$ cd GPT-AI-Horoscope
-
Install the requirements
$ npm install
-
Add your API key in index-s123456.js (located inside the pages folder), where it says
"{YOUR_OPEN_AI_API_KEY}"
. -
Run the app
$ npm run dev
You should now be able to access the app at localhost:3000/index-s123456.