-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
16d2277
commit 972e8b8
Showing
36 changed files
with
11,486 additions
and
34,253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,10 +14,10 @@ brew install postgres@14 node | |
|
||
### Node | ||
|
||
Make sure you're using `18.x` because [Vercel](https://vercel.com/docs/runtimes#official-runtimes/node-js/node-js-version) currently lists their default runtime as that version. This project uses [npm workspaces](https://docs.npmjs.com/cli/v8/using-npm/workspaces) & [Turborepo](https://turborepo.org/) and setup is simple: | ||
Make sure you're using `18.x` because [Vercel](https://vercel.com/docs/runtimes#official-runtimes/node-js/node-js-version) currently lists their default runtime as that version. This project uses [yarn workspaces](https://classic.yarnpkg.com/lang/en/docs/workspaces/) & [Turborepo](https://turborepo.org/) and setup is simple: | ||
|
||
``` | ||
npm install | ||
yarn | ||
``` | ||
|
||
### Database | ||
|
@@ -47,21 +47,21 @@ DATABASE_URL="postgresql:https://reubinadmin:password@localhost:5432/reubindb?schema=p | |
First push the db to setup the tables: | ||
|
||
``` | ||
npm run db | ||
yarn db | ||
``` | ||
|
||
#### Seeing the Project | ||
|
||
You can populate the project with data by running the seed command. This will populate the database with feeds, tags and a single user. | ||
|
||
``` | ||
npm run seed | ||
yarn seed | ||
``` | ||
|
||
The seed command can also be run with an `--email` flag: | ||
|
||
``` | ||
npm run seed -- --email='[email protected]' | ||
yarn seed -- --email='[email protected]' | ||
``` | ||
|
||
This will allow you to login to the app with: | ||
|
@@ -77,14 +77,14 @@ _NOTE_: Running this command will also clear the database of all existing data. | |
|
||
### Commands | ||
|
||
| command | description | | ||
| ------------------ | ---------------------------------------------------------------- | | ||
| `npm run build` | Runs build in each workspace | | ||
| `npm test` | Executes the tests in each workspace | | ||
| `npm run clean` | Clears out specific cache directories | | ||
| `npm run generate` | Generates types from the GraphQL documents for server and client | | ||
| `npm run dev` | Run all projects in development mode | | ||
| `npm run e2e` | Kick of integration tests | | ||
| command | description | | ||
| --------------- | ---------------------------------------------------------------- | | ||
| `yarn build` | Runs build in each workspace | | ||
| `yarn test` | Executes the tests in each workspace | | ||
| `yarn clean` | Clears out specific cache directories | | ||
| `yarn generate` | Generates types from the GraphQL documents for server and client | | ||
| `yarn dev` | Run all projects in development mode | | ||
| `yarn e2e` | Kick of integration tests | | ||
|
||
### Scripts | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
import type { Metadata } from "next"; | ||
|
||
export const metadata: Metadata = { | ||
title: "Changelog | Reubin", | ||
}; | ||
|
||
export default function ChangelogPage() { | ||
return <h1>Changelog</h1>; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
"use client"; | ||
|
||
import { useReducer } from "react"; | ||
import { DashContext, dashboardReducer } from "../hooks/useDashboard"; | ||
import { useEventCallback } from "../hooks/useEventCallback"; | ||
|
||
export function DashboardProvider({ children }: { children?: React.ReactNode }) { | ||
const [state, dispatch] = useReducer(dashboardReducer, { feed: null, entry: null }); | ||
|
||
const selectEntry = useEventCallback((id: string) => { | ||
dispatch({ type: "SELECT_ENTRY", entryId: id }); | ||
}); | ||
|
||
const selectFeed = useEventCallback((id: string) => { | ||
dispatch({ type: "SELECT_FEED", feed: id }); | ||
}); | ||
|
||
const unselectFeed = useEventCallback(() => { | ||
dispatch({ type: "SELECT_FEED", feed: null }); | ||
}); | ||
|
||
return ( | ||
<DashContext.Provider value={[state, { selectEntry, selectFeed, unselectFeed }]}> | ||
{children} | ||
</DashContext.Provider> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
972e8b8
There was a problem hiding this comment.
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:
reubin – ./
reubin-hephaestus.vercel.app
reubin-site.vercel.app
alpha.reubin.app
reubin-git-main-hephaestus.vercel.app
pre-alpha.reubin.app
reubin.app