Skip to content

A home screen to visualise all your important data : Stocks, News, Weather and more

Notifications You must be signed in to change notification settings

SashaCtp/lerooftop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✨ Le Rooftop ✨

How to setup ?

  1. Clone the repository on your local machine
  2. Install dependencies with npm : npm install
  3. Build the project : npm run build
  4. Run the server : npm run start
  5. Go to http://localhost:3000
  6. You're done !

APIs

For this project we used 3 different APIs :

OpenAI

OpenAI is our fourth present API in the dashboard and provides a community library for handle request.

The AI is trained to be a sarcastic chat bot, requires english messages and can't remember previous questions

https://beta.openai.com/examples/default-marv-sarcastic-chat

https://beta.openai.com/overview

Proxy

For security reasons, we do not store our API keys in the front-end application. The server is used as a proxy, which forwards requests from localhost to the real API by adding in the headers the API key (X-API-Key or Authorization).

In real life, the keys should be written in a .env file (and server's soure code should be private), however for this school project we placed them in a JS config file in the server directory.

The keys will be reset once the project has been reviewed by the professor 😉

About

A home screen to visualise all your important data : Stocks, News, Weather and more

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •