Skip to content

Commit

Permalink
initial poc
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasrosa committed Jul 31, 2023
1 parent 762b12d commit 58c3a38
Show file tree
Hide file tree
Showing 66 changed files with 5,724 additions and 1,342 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/sonar-cloud.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: SonarCloud
on:
push:
branches:
- main
- develop

pull_request:
types: [opened, synchronize, reopened]

jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
File renamed without changes.
File renamed without changes.
54 changes: 54 additions & 0 deletions .old/ResultsProviders.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
// 'use client'

// import { ReactNode, useEffect, useState } from 'react'

// import { ResultsContext } from '@/contexts/ResultsContext'
// import { Result } from '@/@types/ResultsTypes'
// import { Ticker } from '@/@types/TickersTypes'
// import { useTickers } from '@/hooks/useTickers'
// import { fetchTicker } from '@/helpers/tickers'

// export function ResultsProviders({ children }: { children: ReactNode }) {

// const [results, setResults] = useState<Result[]>([])
// const { tickers } = useTickers()

// const get = (ticker: string): Result => {
// return results.find((r) => r.ticker === ticker) || {} as Result
// }

// const load = async (tickers: Ticker[]) => {
// console.log('loading results...', tickers);

// const newResults: Result[] = []
// Promise.allSettled(tickers.map((t) => fetchTicker(t.ticker)))
// .then((responses) => {
// responses.forEach((response) => {
// if (response.status === 'fulfilled') {
// newResults.push(response.value)
// }
// })
// })
// .finally(() => {
// setResults(newResults)
// console.log('results loaded', newResults);
// })

// }

// useEffect(() => {
// load(tickers)
// }, [tickers])

// return (
// <ResultsContext.Provider
// value={{
// get,
// load,
// results
// }}
// >
// {children}
// </ResultsContext.Provider>
// )
// }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

First, run the development server:

```bash
docker compose -f docker-compose.local.yml up
```
npm install
npm run dev


12 changes: 0 additions & 12 deletions docker-compose.local.yml

This file was deleted.

2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @type {import('next').NextConfig} */

const nextConfig = {
experimental: {
appDir: true,
serverComponentsExternalPackages: ['@tremor/react'],
},
}
Expand Down
9 changes: 0 additions & 9 deletions node.Dockerfile

This file was deleted.

Loading

1 comment on commit 58c3a38

@vercel
Copy link

@vercel vercel bot commented on 58c3a38 Jul 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

tcc-nextjs – ./

tcc-nextjs-alpha.vercel.app
tcc-nextjs-eliasrosa.vercel.app
tcc-nextjs-git-main-eliasrosa.vercel.app

Please sign in to comment.