Skip to content

Training project to learn Angular : uses ChatGPT to generate gift ideas ; done during my training with Simplon.

Notifications You must be signed in to change notification settings

StormLbn/liste-cadeaux-simplon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 

Repository files navigation

IDKDO (idées cadeau)

This is a small training project to learn Angular and API requests. It was done in pairs, during courses with the training organisation Simplon.

This app uses the ChatGPT API to generate a list of gift ideas depending on criteras such as age, gender and interests of the person.

Using the app requires a valid OpenAI API key and credits.

Features

  • Enter (or not) criteras such as gender, name, age and/or up to 3 interests to make a search
  • Browse gift ideas with descriptions, price and auto-generated example pictures
  • Save gift ideas for later - they appear at the bottom of the page, where they can also be deleted

Technologies

  • Angular 15
  • JSON server

How to run the app

This project isn't hosted online ; if you want to run it, you will have to clone the project and install it.

Requirements :

Install and run the JSON server

Install json-server with terminal open in the json folder, then start it :

npm install json-server
npm start

Server runs on port 3000 ; raw data is available at http://localhost:3000/data

Install and setup IDKDO

You will need a valid OpenAI API key and credits available to make search. Copy your API key in IDKDO/src/environments/environment.development.ts.

With a terminal open in the IDKDO folder, install node modules then start the app :

npm install
ng serve

Application is then running on port 4200. Data from the JSON server appears as "favorites" at the bottom of the page.

About

Training project to learn Angular : uses ChatGPT to generate gift ideas ; done during my training with Simplon.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published