Skip to content

Commit

Permalink
Merge pull request #83 from fac30/Routing
Browse files Browse the repository at this point in the history
Routing
  • Loading branch information
maxitect authored Sep 29, 2024
2 parents bd6b78b + d6fb7e0 commit bb22c59
Show file tree
Hide file tree
Showing 22 changed files with 330 additions and 95 deletions.
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

0 comments on commit bb22c59

Please sign in to comment.