Skip to content

Commit c9ff659

Browse files
author
Muhammad Rehan Alam
committed
chore(app): add readme and fix lint issues
1 parent de9eb5e commit c9ff659

3 files changed

Lines changed: 21 additions & 38 deletions

File tree

README.md

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,24 @@
1-
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
1+
# Authlete Recipes
22

3-
## Getting Started
3+
Explore Authlete OAuth recipes in a guided experience. Browse organizations, complete initial onboarding and execute recipe. Run each step with the built-in code runner.
44

5-
First, run the development server:
5+
## Run Locally
66

7-
```bash
8-
npm run dev
9-
# or
10-
yarn dev
11-
# or
12-
pnpm dev
13-
# or
14-
bun dev
15-
```
7+
- Install dependencies: `npm install`
8+
- Configure Authlete access (recommended): `AUTHLETE_BEARER=<token>` and optionally `AUTHLETE_BASE_URL=<url>` in your env; placeholder data loads without them.
9+
- Start the dev server: `npm run dev` then visit `http://localhost:3000` and pick an organization to enter its dashboard.
1610

17-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
11+
## Testing
1812

19-
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
13+
- Run the Vitest suite: `npm test`
14+
- Watch mode: `npm run test:watch`
15+
- Coverage: `npm run test:coverage`
16+
- Lint (optional): `npm run lint`
2017

21-
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
18+
## Github Repository
2219

23-
## Learn More
24-
25-
To learn more about Next.js, take a look at the following resources:
26-
27-
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28-
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
29-
30-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
20+
https://github.com/rehanalam/authlete-demo-app
3121

3222
## Deploy on Vercel
3323

34-
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
35-
36-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
24+
https://authlete-demo-app.vercel.app/

src/components/onboarding/client-setup.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ export default function ClientSetupStep({
126126
<FormControl>
127127
<Input placeholder="Sample Client" {...field} />
128128
</FormControl>
129+
<FormDescription>Up to 100 Unicode characters.</FormDescription>
129130
<FormMessage />
130131
</FormItem>
131132
)}

src/components/recipes/recipe-content.tsx

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,12 @@ interface RecipeContentProps {
77
}
88

99
const markdownComponents: Components = {
10-
h1: ({ node, ...props }) => (
11-
<h1 {...props} className="text-3xl font-bold mb-6 mt-8 scroll-mt-20" />
12-
),
13-
h2: ({ node, ...props }) => (
14-
<h2 {...props} className="text-2xl font-semibold mb-4 mt-6 scroll-mt-20" />
15-
),
16-
h3: ({ node, ...props }) => (
17-
<h3 {...props} className="text-xl font-semibold mb-3 mt-5 scroll-mt-20" />
18-
),
19-
p: ({ node, ...props }) => <p {...props} className="text-base leading-relaxed mb-4" />,
20-
li: ({ node, ...props }) => <li {...props} className="ml-5 list-disc mb-2" />,
21-
code: ({ node, className, children, ...props }) => {
10+
h1: ({ ...props }) => <h1 {...props} className="text-3xl font-bold mb-6 mt-8 scroll-mt-20" />,
11+
h2: ({ ...props }) => <h2 {...props} className="text-2xl font-semibold mb-4 mt-6 scroll-mt-20" />,
12+
h3: ({ ...props }) => <h3 {...props} className="text-xl font-semibold mb-3 mt-5 scroll-mt-20" />,
13+
p: ({ ...props }) => <p {...props} className="text-base leading-relaxed mb-4" />,
14+
li: ({ ...props }) => <li {...props} className="ml-5 list-disc mb-2" />,
15+
code: ({ children }) => {
2216
return <code className="bg-gray-200 px-1 py-0.5 rounded text-sm">{children}</code>;
2317
},
2418
};

0 commit comments

Comments
 (0)