diff --git a/README.md b/README.md index c061703..fd2dba0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,19 @@ # naija-stars -Visualization of the most starred repositories on GitHub by Nigerian developers. +Visualization of the open source projects built by Nigerian developers. + +## Tech Stack + +- [Deno](https://deno.com/) - Backend + Runtime +- [Deno Deploy](https://deno.com/deploy) - Deployment +- [Svelte + Vite](https://svelte.dev/) - Frontend +- [Hono](https://hono.dev/) - API +- [Neon](https://neon.tech/) - Database +- [Upstash](https://upstash.com/) - Redis + Rate Limiting + +## Demo + +> add video here ## Commands @@ -12,3 +25,9 @@ Before running any command, make sure you copy the contents of `.env.example` to - `deno run fe:dev` - Start the frontend server. - `deno run fe:build` - Build the frontend. - `deno run fe:preview` - Preview the frontend. + +## Credits + +### Built with ❤️ by [@classroomio](https://github.com/classroomio) + +### Data from [@madeinnigeria](https://github.com/acekyd/made-in-nigeria) diff --git a/main.ts b/main.ts index b2727ce..112ee33 100644 --- a/main.ts +++ b/main.ts @@ -39,8 +39,8 @@ app.use('/v1/*', cors()); app.get( '/v1/*', cache({ - cacheName: 'naijastars-api', - cacheControl: 'max-age=3600', + cacheName: 'nsapi', + cacheControl: 'max-age=900', wait: true, }) ); diff --git a/src/lib/components/border-beam/border-beam.svelte b/src/lib/components/border-beam/border-beam.svelte new file mode 100644 index 0000000..1ab3da8 --- /dev/null +++ b/src/lib/components/border-beam/border-beam.svelte @@ -0,0 +1,35 @@ + + +
diff --git a/src/lib/components/border-beam/index.ts b/src/lib/components/border-beam/index.ts new file mode 100644 index 0000000..f874859 --- /dev/null +++ b/src/lib/components/border-beam/index.ts @@ -0,0 +1,3 @@ +import Root from './border-beam.svelte'; + +export { Root, Root as BorderBeam }; diff --git a/src/lib/pages/home/table.svelte b/src/lib/pages/home/table.svelte index 60b9a50..2632cae 100644 --- a/src/lib/pages/home/table.svelte +++ b/src/lib/pages/home/table.svelte @@ -21,8 +21,9 @@ import type { Repository, ApiMetadata } from '$lib/types/repository'; // import Actions from './table-actions.svelte'; - import * as Table from '$lib/components/table/index.js'; - import { Button } from '$lib/components/button/index.js'; + import * as Table from '$lib/components/table'; + import { Button } from '$lib/components/button'; + import { BorderBeam } from '$lib/components/border-beam'; export let data: Repository[] = []; export let apiMetadata: ApiMetadata; @@ -154,7 +155,8 @@
-
+
+

Coming soon

diff --git a/src/lib/pages/shared/sidebar.svelte b/src/lib/pages/shared/sidebar.svelte index 111099b..d9400c7 100644 --- a/src/lib/pages/shared/sidebar.svelte +++ b/src/lib/pages/shared/sidebar.svelte @@ -28,7 +28,7 @@