This is an open source medium-alike app build with everything new in Next.js 14. It is bootstrapped with create-t3-app
.
- Framework: Next.js
- Styling: Tailwind CSS
- UI Components: shadcn/ui
NOTE: axios and dummyjson combo is killing me ahhaahh It's so inconvinient, I'd rather create my own api with my own schemas with react query
-
Fetch all posts using axios
-
Implement posts design on main page
-
Implement routing to detailed post page using dynamic routes
-
Create AuthContext that checks if the user is authenticated.
-
Sign in page
-
Passing auth token to axios request
-
Implement axios interceptor to pass auth token with requests
-
Handle API errors in axios interceptor response
-
Theme provider
-
CRUD for posts
-
Clone the repository
git clone https://github.com/iboughtbed/nf-hw-3.git
-
Install dependencies using pnpm
pnpm install
-
Copy the
.env.example
to.env
and update the variables.cp .env.example .env
-
Start the development server
pnpm run dev
This is nFactorial Incubator homework for day 2
Licensed under the MIT License. Check the LICENSE file for details.