- Navigate to the
client
folder:cd client
- Install dependencies:
npm install
- Start the application:
ng serve
- The application will be available at http://localhost:4200/.
- Navigate to the
server
folder:cd server
- Install dependencies:
npm install
- Start the server:
node index.js
- The server will be running on port 3000.
For security reasons, you must set your own OPENAI_API_KEY
and VERCEL_API_KEY
. Follow these steps to create a .env
file:
-
Navigate to the
server
folder:cd server
-
Create a
.env
file:touch .env
-
Add the following content to the
.env
file (replace placeholders with actual keys):OPENAI_API_KEY="YOUR-API-KEY" VERCEL_API_KEY="YOUR-VERCEL-API-KEY" VERCEL_TEAM_ID="YOUR-VERCEL-TEAM-ID"
-
Make sure to add the
.env
file to your.gitignore
to keep it secure:echo ".env" >> .gitignore
- Go to the OpenAI website.
- Sign in or create an account if you don't have one.
- Navigate to the API section of your account.
- Generate a new API key.
- Copy the key and use it as the value for
OPENAI_API_KEY
in your.env
file.
- Go to the Vercel website.
- Sign in or create an account if you don't have one.
- Navigate to your account settings and find the API Tokens section.
- Generate a new API token.
- Copy the API token and use it as the value for
VERCEL_API_KEY
in your.env
file. - To find your Team ID, navigate to your team settings in Vercel.
- Copy the Team ID and use it as the value for
VERCEL_TEAM_ID
in your.env
file.