Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routing #83

Merged
merged 16 commits into from
Sep 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions docs/DATAFLOW.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Routes Scratchpad

```mermaid
graph TD

input
output

subgraph jason
inSEvent
inSGenre
inDDate
appApp
appOut
end

subgraph tanya
toOpenAI
fromOpenAI
end

openai

subgraph gaj
toSpotify
fromSpotify
end

spotify

input --> inSEvent & inSGenre & inDDate
inSEvent & inSGenre --> toOpenAI
toOpenAI --> openai
openai --> fromOpenAI
inDDate & fromOpenAI --> appApp
appApp --> toSpotify
toSpotify --> spotify
spotify --> fromSpotify
fromSpotify --> appOut
appOut --> output
```
34 changes: 34 additions & 0 deletions docs/folders
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
src
├── app.ts
├── controllers
│ ├── openAI
│ │ └── extractEmotion.ts
│ ├── spotify
│ │ └── searchGenre.ts
│ └── user
│ ├── getInput.ts
│ └── showOutput.ts
├── data
│ ├── demo
│ │ └── album.json
│ └── schema
│ └── categories.json
├── models
│ ├── openai
│ └── spotify
│ └── searchGenre.ts
├── routes
│ ├── internal
│ │ └── user.ts
│ ├── openAI
│ │ └── index.ts
│ ├── routes.ts
│ └── spotify
│ └── index.ts
├── swagger.ts
└── types
├── openaiQuery.ts
├── openaiResponse.ts
├── spotifyQuery.ts
├── spotifyResponse.ts
└── userInput.ts
2 changes: 1 addition & 1 deletion nodemon.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"watch": ["src"],
"ext": "ts",
"exec": "ts-node --esm -r tsconfig-paths/register ./src/app.ts"
"exec": "tsx src/app.ts"
}
Loading