This is my excercise to learn nextjs routing Using Nextjs, Typescript, json-server
- Step 1.
Clone the project
git clone https://github.com/zhengwuqingling28/nextjs-news.git
- Step 2.
go to backend(mock API:json-server)
install package
cd ./next-news-fakeapi
run backendnpm i
npm run dev
- Step 3.
go to frontend(in the new terminal)
install package
cd ./next-news-frontend
run frontendnpm i
npm run dev