Skip to content

Commit

Permalink
Merge pull request #276 from kirillkurko/app-router-migration
Browse files Browse the repository at this point in the history
App routed migration
  • Loading branch information
kirillkurko authored Mar 3, 2024
2 parents 126e8d7 + dbd06c0 commit fb65227
Show file tree
Hide file tree
Showing 21 changed files with 801 additions and 1,079 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
IS_EXAMPLE=true
IS_EXAMPLE=true
7 changes: 0 additions & 7 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
# For emoji board
DATABASE_URL='mysql://...'

# For guestbook
OAUTH_CLIENT_KEY='...'
OAUTH_CLIENT_SECRET='...'

NEXTAUTH_URL='...'
NEXTAUTH_SECRET='...'
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ This is my personal website built with the following technologies:
- **Framework**: [Next.js](https://nextjs.org)
- **Database**: [PlanetScale](https://planetscale.com)
- **ORM**: [Prisma](https://www.prisma.io)
- **Authentication**: [NextAuth.js](https://next-auth.js.org)
- **Content**: [MDX](https://mdxjs.com) and [Contentlayer](https://www.contentlayer.dev)
- **Deployment**: [Vercel](https://vercel.com)
- **Styling**: [Tailwind CSS](https://tailwindcss.com)
Expand All @@ -18,7 +17,7 @@ This is my personal website built with the following technologies:
- `layouts/*` - The different page layouts each MDX category (blog, snippets) uses.
- `src/lib/*` - Some "API" utilities and `models` layer for getting data from the database.
- `pages/*` - API routes and pages present on the website.
- `pages/api/*` - [API Routes](https://nextjs.org/docs/api-routes/introduction) powering [`/emoji`](https://www.kkurko.dev/emoji), guestbook, blog and auth.
- `pages/api/*` - [API Routes](https://nextjs.org/docs/api-routes/introduction) powering [`/emoji`](https://www.kkurko.dev/emoji) and blog.
- `pages/blog/*` - Static pre-rendered blog pages using Contenlayer and MDX.
- `styles/*` - A small amount of global styles and styles for hamburger menu on mobile.

Expand All @@ -31,7 +30,7 @@ $ yarn
$ yarn dev
```

In order to make [Guestbook](https://www.kkurko.dev/guestbook), [Emoji](https://www.kkurko.dev/emoji) pages and [Blog](https://www.kkurko.dev/blog) views work you need to set up your own PlantScale database and GitHub auth and create a `.env` file similar to [`.env.example`](https://github.com/kirillkurko/kkurko.dev/blob/dev/.env.example). A detailed guide on doing this is coming soon.
In order to make [Emoji](https://www.kkurko.dev/emoji) page and [Blog](https://www.kkurko.dev/blog) views work you need to set up your own PlantScale database and create a `.env` file similar to [`.env.example`](https://github.com/kirillkurko/kkurko.dev/blob/dev/.env.example).

## 🙌 Contributions

Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
"clsx": "^2.1.0",
"contentlayer": "^0.3.4",
"framer-motion": "^11.0.6",
"next": "^13.5.4",
"next-auth": "^4.24.6",
"next": "^14.1.1",
"next-contentlayer": "^0.3.4",
"next-images": "^1.8.5",
"react": "^18.2.0",
Expand All @@ -41,7 +40,7 @@
"autoprefixer": "^10.4.17",
"eslint": "^8.56.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-next": "^14.1.0",
"eslint-config-next": "^14.1.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-import-newlines": "^1.3.4",
Expand Down
Loading

0 comments on commit fb65227

Please sign in to comment.