Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 825 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 825 Bytes

001-make-monorepo

1. Create modules

Frontend

  1. npx create-next-app@latest frontend --use-npm --example "https://github.com/vercel/next-learn/tree/master/basics/typescript-final"
  2. Modify frontend/package.json line 4 to: "dev": "next dev -p 3001" (So the local frontend doesn't clash with server)
  3. rm -r ./frontend/.git
  4. Interact with the app through: npm run dev npm run build npm run start

Server

  1. npx typescript-express-starter server
  2. rm -r ./server/.git
  3. npm run dev and http://localhost:3000/api-docs/ should be accessible

2. Create makefile

  1. Clean everything: make clean
  2. Run frontend: make frontend (It will install the dependencies itself if they aren't found)
  3. Run server: make server (It will install the dependencies itself if they aren't found)