https://github.com/arafipro/course-platform
https://github.com/arafipro/course-platform
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/arafipro/course-platform
- Owner: arafipro
- Created: 2025-03-02T22:17:05.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-03-03T02:08:34.000Z (3 months ago)
- Last Synced: 2025-03-03T03:20:49.022Z (3 months ago)
- Language: TypeScript
- Size: 167 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
`mkdir monorepo-base`
`git init`
`cd monorepo-base/`
`npm init -y`
`npm i --save-dev turbo`
```.gitignore
node_modules
``````json turbo.json
{
"tasks": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**/*"]
},
"lint": {},
"dev": {
"cache": false
}
}
}
``````diff json package.json
{
"name": "monorepo-base",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
- "test": "echo \"Error: no test specified\" && exit 1",
+ "dev": "turbo run dev",
+ "build": "turbo run build",
+ "lint": "turbo run lint"
},
+ "packageManager": "[email protected]",
+ "workspaces": [
+ "apps/*"
+ ],
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"turbo": "^2.4.4"
}
}
```# 2 create frontend
`mkdir apps`
`npm create cloudflare@latest apps/frontend`
```sh
Would you like to use TypeScript? … Yes
Would you like to use ESLint? … Yes
Would you like to use Tailwind CSS? … Yes
Would you like your code inside a `src/` directory? … No
Would you like to use App Router? (recommended) … Yes
Would you like to use Turbopack for `next dev`? … Yes
Would you like to customize the import alias (`@/*` by default)? … NoDo you want to use git for version control? yes git
Do you want to deploy your application? no
````npm run dev`
```diff .gitignore
node_modules
+ .turbo
```# 3 create backend
`npm create hono@latest apps/backend`
```sh
Which template do you want to use? cloudflare-workers
Do you want to install project dependencies? yes
Which package manager do you want to use? npm
```# 4 add shadcn/ui
`cd apps/frontend`
`npx shadcn@latest init`
```sh
Which style would you like to use? › Default
Which color would you like to use as the base color? › Neutral
How would you like to proceed? › Use --legacy-peer-deps
````npx shadcn@latest add button`
```sh
How would you like to proceed? › Use --legacy-peer-deps
```