Skip to content

Commit

Permalink
chore(repo): 🏗️ set min node/pnpm versions (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
McPizza0 authored Feb 20, 2024
1 parent 117b6e2 commit b75c352
Show file tree
Hide file tree
Showing 12 changed files with 65 additions and 10 deletions.
29 changes: 20 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,15 @@ Instead, we're detaching from its legacy underpinnings, to build something moder
_p.s. Things will change over time!_

## Running Locally

To get a local copy up and running, follow these simple steps.

### Prerequisites

Here is what you need to be able to run UnInbox locally.

- Node.js (Version: >=20.x)
- NVM (Node Version Manager) (see https://github.com/nvm-sh/nvm)
- Docker
- pnpm (see https://pnpm.io/installation)

Expand All @@ -105,38 +107,47 @@ Here is what you need to be able to run UnInbox locally.
cd UnInbox
```

3. Install packages with pnpm
3. Check and install the correct node/pnpm versions

```sh
nvm install
```

4. Install packages with pnpm

```sh
pnpm i
```

4. Set up your `.env.local` file
5. Set up your `.env.local` file

- Duplicate `.env.local.example` to `.env.local`. This file is already pre-configured for use with the local docker containers

mac
mac

```sh
cp .env.local.example .env.local
```

windows

```sh
copy .env.local.example .env.local
```

5. Start the docker containers
6. Start the docker containers

```sh
pnpm run docker:up
```

6. Sync the schema with the database:

```sh
7. Sync the schema with the database:

```sh
pnpm run db:push
```
```

7. In another terminal window, start the app and all services
8. In another terminal window, start the app and all services

```sh
pnpm run dev
Expand Down
6 changes: 5 additions & 1 deletion apps/landing-page/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"name": "@uninbox/landing",
"private": true,
"type": "module",
"engines": {
"node": ">=20",
"pnpm": ">=8"
},
"scripts": {
"build": "nuxt build",
"dev": "PORT=3500 nuxt dev",
Expand Down Expand Up @@ -36,4 +40,4 @@
"overrides": {
"vue": "3.3.13"
}
}
}
4 changes: 4 additions & 0 deletions apps/mail-bridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"name": "@uninbox/mail-bridge",
"private": true,
"types": "types.ts",
"engines": {
"node": ">=20",
"pnpm": ">=8"
},
"scripts": {
"dev": "PORT=3100 npx nitropack dev",
"build": "npx nitropack build",
Expand Down
4 changes: 4 additions & 0 deletions apps/storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"name": "@uninbox/storage",
"private": true,
"types": "types.ts",
"engines": {
"node": ">=20",
"pnpm": ">=8"
},
"scripts": {
"dev": "PORT=3200 npx nitropack dev",
"build": "npx nitropack build",
Expand Down
4 changes: 4 additions & 0 deletions apps/web-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"name": "@uninbox/web-app",
"private": true,
"type": "module",
"engines": {
"node": ">=20",
"pnpm": ">=8"
},
"scripts": {
"build": "nuxt build",
"dev": "PORT=3000 nuxt dev --host",
Expand Down
4 changes: 4 additions & 0 deletions ee/apps/billing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"license": "COMMERCIAL",
"private": true,
"types": "types.ts",
"engines": {
"node": ">=20",
"pnpm": ">=8"
},
"scripts": {
"ee:dev": "PORT=3800 npx nitropack dev",
"ee:build": "npx nitropack build",
Expand Down
4 changes: 4 additions & 0 deletions ee/packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"name": "@uninbox-ee/types",
"private": true,
"version": "1.0.0",
"engines": {
"node": ">=20",
"pnpm": ">=8"
},
"description": "",
"main": "index.ts",
"types": "index.ts",
Expand Down
4 changes: 4 additions & 0 deletions packages/database/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"private": true,
"types": "./index.ts",
"main": "index.js",
"engines": {
"node": ">=20",
"pnpm": ">=8"
},
"scripts": {
"db:generate": "drizzle-kit generate:mysql --config=drizzle.config.ts",
"db:push": "drizzle-kit push:mysql --config=drizzle.config.ts",
Expand Down
4 changes: 4 additions & 0 deletions packages/postal-puppet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
"files": [
"dist"
],
"engines": {
"node": ">=20",
"pnpm": ">=8"
},
"scripts": {
"build:puppet": "unbuild",
"dev:puppet": "unbuild --stub",
Expand Down
4 changes: 4 additions & 0 deletions packages/trpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"private": true,
"description": "",
"main": "index.js",
"engines": {
"node": ">=20",
"pnpm": ">=8"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"description": "",
"main": "index.ts",
"types": "index.ts",
"engines": {
"node": ">=20",
"pnpm": ">=8"
},
"devDependencies": {
"typescript": "^5.3.3"
}
Expand Down
4 changes: 4 additions & 0 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"keywords": [],
"author": "",
"license": "ISC",
"engines": {
"node": ">=20",
"pnpm": ">=8"
},
"dependencies": {
"nanoid": "^5.0.6",
"zod": "^3.22.4"
Expand Down

0 comments on commit b75c352

Please sign in to comment.