An open API service indexing awesome lists of open source software.

https://github.com/arafipro/course-platform


https://github.com/arafipro/course-platform

Last synced: 2 months ago
JSON representation

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)? … No

Do 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
```