npx create-next-app@latest frontend --use-npm --example "https://github.com/vercel/next-learn/tree/master/basics/typescript-final"
- Modify
frontend/package.json
line 4 to:"dev": "next dev -p 3001"
(So the local frontend doesn't clash with server) rm -r ./frontend/.git
- Interact with the app through:
npm run dev
npm run build
npm run start
npx typescript-express-starter server
rm -r ./server/.git
npm run dev
and http://localhost:3000/api-docs/ should be accessible
- Clean everything:
make clean
- Run frontend:
make frontend
(It will install the dependencies itself if they aren't found) - Run server:
make server
(It will install the dependencies itself if they aren't found)