Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
647 commits
Select commit Hold shift + click to select a range
9b984c0
Merge pull request #33 from henzyd/staging
henzyd Dec 11, 2024
eb630d8
fix: auth bug
henzyd Dec 11, 2024
a816dc6
Merge pull request #91 from quantum-brackets/bug-fixes
henzyd Dec 11, 2024
e59052b
logging headers
henzyd Dec 11, 2024
402105a
Merge pull request #92 from quantum-brackets/bug-fixes
henzyd Dec 11, 2024
4cd8316
logging headers
henzyd Dec 11, 2024
fca57f0
Merge pull request #93 from quantum-brackets/bug-fixes
henzyd Dec 11, 2024
d1d89f8
fix: auth bug
henzyd Dec 11, 2024
3ca60fe
Merge pull request #94 from quantum-brackets/bug-fixes
henzyd Dec 11, 2024
4b3f815
fix: auth bug
henzyd Dec 11, 2024
c30a371
Merge pull request #95 from quantum-brackets/bug-fixes
henzyd Dec 11, 2024
211adc9
logging session token
henzyd Dec 11, 2024
51fff1e
Merge pull request #96 from quantum-brackets/bug-fixes
henzyd Dec 11, 2024
0c84225
reset
henzyd Dec 11, 2024
6299ebc
Merge pull request #97 from quantum-brackets/bug-fixes
henzyd Dec 11, 2024
30afa6e
fix: auth bug
henzyd Dec 11, 2024
b8006b9
Merge pull request #98 from quantum-brackets/bug-fixes
henzyd Dec 11, 2024
34a6442
fix: auth bug
henzyd Dec 11, 2024
761db69
Merge pull request #99 from quantum-brackets/bug-fixes
henzyd Dec 11, 2024
94dd13f
fix: auth bug
henzyd Dec 11, 2024
33a1cdb
Merge pull request #100 from quantum-brackets/bug-fixes
henzyd Dec 11, 2024
b97fbb0
fix: auth bug
henzyd Dec 11, 2024
584331c
Merge pull request #101 from quantum-brackets/bug-fixes
henzyd Dec 11, 2024
ef20914
fix: auth bug
henzyd Dec 11, 2024
be22ed3
Merge pull request #102 from quantum-brackets/bug-fixes
henzyd Dec 11, 2024
a10b473
fix: auth bug
henzyd Dec 11, 2024
e3dff88
Merge pull request #103 from quantum-brackets/bug-fixes
henzyd Dec 11, 2024
48047b7
fix: auth bug
henzyd Dec 11, 2024
5e324d4
Merge pull request #104 from quantum-brackets/bug-fixes
henzyd Dec 11, 2024
993cbb2
fix: auth bug
henzyd Dec 11, 2024
932cabb
Merge pull request #105 from quantum-brackets/bug-fixes
henzyd Dec 11, 2024
c041038
clean up
henzyd Dec 11, 2024
6449708
Merge pull request #106 from quantum-brackets/bug-fixes
henzyd Dec 11, 2024
cfe4e61
Merge branch 'staging' of https://github.com/quantum-brackets/45group…
henzyd Dec 11, 2024
1de3d65
fix: authorization in local
henzyd Dec 11, 2024
8b8af03
Merge pull request #107 from quantum-brackets/admin-resources
henzyd Dec 11, 2024
27148cb
created group subform in resource form
henzyd Dec 12, 2024
9e53fae
clean up
henzyd Dec 12, 2024
a0610c9
Merge branch 'staging' of https://github.com/quantum-brackets/45group…
henzyd Dec 12, 2024
123c02d
Merge pull request #108 from quantum-brackets/admin-resources
henzyd Dec 12, 2024
7a94f47
updated global error
henzyd Dec 12, 2024
ae9a39e
updated validate schema
henzyd Dec 12, 2024
e445a79
created rules POST and GET edpoints
henzyd Dec 12, 2024
ba7849d
Merge branch 'staging' of https://github.com/quantum-brackets/45group…
henzyd Dec 12, 2024
125f7b2
Merge pull request #109 from quantum-brackets/admin-resources
henzyd Dec 12, 2024
a3b84e4
created POST and GET facility endpoint
henzyd Dec 12, 2024
3919259
refactored rules subform
henzyd Dec 13, 2024
be58189
refactor: sub form
henzyd Dec 13, 2024
7452f25
updated facility sub form
henzyd Dec 13, 2024
78bf12e
Merge branch 'staging' of https://github.com/quantum-brackets/45group…
henzyd Dec 13, 2024
886573d
Merge pull request #110 from quantum-brackets/admin-resources
henzyd Dec 13, 2024
af75f92
saving changes
henzyd Dec 15, 2024
8065280
create resource POST endpoint
henzyd Dec 15, 2024
4b5dfc4
saving changes
henzyd Dec 18, 2024
139e1eb
created location form
henzyd Dec 18, 2024
7ccd204
fix: bugs in filters
henzyd Dec 18, 2024
7ee5ba8
fix: image upload bug
henzyd Dec 18, 2024
5d9864c
Merge branch 'staging' of https://github.com/quantum-brackets/45group…
henzyd Dec 18, 2024
f52f45c
Merge pull request #111 from quantum-brackets/admin-resources
henzyd Dec 18, 2024
4341d7f
made rquested changes
henzyd Dec 18, 2024
65c5d91
Merge branch 'staging' of https://github.com/quantum-brackets/45group…
henzyd Dec 18, 2024
b7a1435
Merge pull request #112 from quantum-brackets/admin-resources
henzyd Dec 18, 2024
f056426
refactored forms components
henzyd Dec 18, 2024
d68108b
refactored forms components
henzyd Dec 18, 2024
ece12d0
created location form
henzyd Dec 18, 2024
5666b2a
Merge branch 'staging' of https://github.com/quantum-brackets/45group…
henzyd Dec 18, 2024
a8a0a80
Merge pull request #113 from quantum-brackets/admin-resources
henzyd Dec 18, 2024
07433c3
clean up
henzyd Dec 18, 2024
1492b6d
updated readme
henzyd Dec 20, 2024
bcc1536
Merge branch 'staging' of https://github.com/quantum-brackets/45group…
henzyd Dec 20, 2024
46f0c5e
Merge pull request #114 from quantum-brackets/docs
henzyd Dec 20, 2024
f14ed56
refactor: configured schema to apply new changes to resources
henzyd Dec 22, 2024
28302ca
updated resource table
henzyd Dec 22, 2024
753a828
updated resource route
henzyd Dec 22, 2024
4ab7f04
updated validation schema
henzyd Dec 23, 2024
deefe49
updated location schema
henzyd Dec 23, 2024
5f25214
added right types to service
henzyd Dec 23, 2024
6af66b3
updated upload service
henzyd Dec 23, 2024
180ad3b
created POST location endpoint
henzyd Dec 23, 2024
b7e94a1
completed location formm
henzyd Dec 23, 2024
587a9cb
Merge pull request #115 from quantum-brackets/admin-resources
henzyd Dec 23, 2024
fc4daba
fix: potential bug
henzyd Dec 28, 2024
0d9bca2
updated resources
henzyd Dec 28, 2024
6250909
Merge branch 'staging' of https://github.com/quantum-brackets/45group…
henzyd Dec 28, 2024
4463d8f
restructured resources
henzyd Dec 28, 2024
9dbfadd
updated services url
henzyd Dec 29, 2024
459c09b
integrated location api in resource form
henzyd Dec 29, 2024
5c767d3
moved location to admin
henzyd Dec 29, 2024
2a43508
updated location schema
henzyd Dec 29, 2024
b56ac99
Merge pull request #116 from quantum-brackets/admin-resources
henzyd Dec 29, 2024
690b51f
updated resource schemas to handle availability
henzyd Jan 11, 2025
45b97ca
refactor: moved filex
henzyd Jan 11, 2025
738f068
updated resource schema
henzyd Jan 11, 2025
02f767d
updated upload service
henzyd Jan 11, 2025
db605ee
clean up
henzyd Jan 11, 2025
c868b29
created resources
henzyd Jan 11, 2025
cc91582
resrtructure resources folder
henzyd Jan 11, 2025
ca1862f
Merge branch 'staging' of https://github.com/quantum-brackets/45group…
henzyd Jan 11, 2025
ae9d279
Merge pull request #117 from quantum-brackets/admin-resources
henzyd Jan 11, 2025
430c780
complete availability form
henzyd Jan 11, 2025
aac450e
Merge branch 'staging' of https://github.com/quantum-brackets/45group…
henzyd Jan 11, 2025
50429dc
Merge pull request #118 from quantum-brackets/admin-resources
henzyd Jan 11, 2025
201c336
added data grid
henzyd Jan 14, 2025
ee19e91
created pagaination middleware
henzyd Jan 14, 2025
ec6a3a7
updated locaion service
henzyd Jan 14, 2025
a68000a
updated get location endpoint
henzyd Jan 14, 2025
26b7aa5
added custom search params
henzyd Jan 14, 2025
0e4c183
updated form field
henzyd Jan 14, 2025
565fecb
created locations page
henzyd Jan 14, 2025
7c1ae8a
Merge branch 'staging' of https://github.com/quantum-brackets/45group…
henzyd Jan 14, 2025
baa55e4
fix: responsivness
henzyd Jan 14, 2025
3b6c980
fix: build error
henzyd Jan 14, 2025
5b5b136
fix: build error
henzyd Jan 14, 2025
60cd262
Merge pull request #119 from quantum-brackets/admin-resources
henzyd Jan 14, 2025
4d484ef
added groups
henzyd Jan 14, 2025
9a076e5
created groups api
henzyd Jan 14, 2025
d347821
created get resource api
henzyd Jan 14, 2025
bbad059
completed get resource page
henzyd Jan 14, 2025
add4fc2
Merge branch 'staging' of https://github.com/quantum-brackets/45group…
henzyd Jan 14, 2025
d7c590b
fix: migration
henzyd Jan 14, 2025
bc313ac
Merge pull request #120 from quantum-brackets/admin-resources
henzyd Jan 14, 2025
f46c714
updated group section
henzyd Jan 15, 2025
97b4c2f
updated group section
henzyd Jan 15, 2025
d47e987
updaed form
henzyd Jan 15, 2025
f200ef9
Merge pull request #121 from quantum-brackets/admin-resources
henzyd Jan 15, 2025
a0c9b66
updated create resource endpoint
henzyd Jan 15, 2025
439a7c6
completed CRUD
henzyd Jan 16, 2025
ec41261
Merge branch 'staging' of https://github.com/quantum-brackets/45group…
henzyd Jan 16, 2025
d98cdae
Merge pull request #122 from quantum-brackets/admin-resources
henzyd Jan 16, 2025
4fc119e
updated group section
henzyd Jan 20, 2025
96e8cf7
CRUD groups endpoints
henzyd Jan 20, 2025
fdc07f8
added pagination to resources
henzyd Jan 20, 2025
4a6ad2d
created DELETE rule endpoint
henzyd Jan 20, 2025
1409a1c
created DELETE facility endpoint
henzyd Jan 20, 2025
1c0ff6c
added new method to resource service
henzyd Jan 20, 2025
9e6bbf0
fix: typo
henzyd Jan 20, 2025
13e48ba
updated schemas
henzyd Jan 20, 2025
fd54fca
created time picker field
henzyd Jan 21, 2025
83e3176
fix: pagination middleware
henzyd Jan 21, 2025
d5eb604
fix: time picker field
henzyd Jan 21, 2025
5850284
removed unused types
henzyd Jan 21, 2025
cba4812
extracted types
henzyd Jan 21, 2025
c93dfef
updated facility section
henzyd Jan 21, 2025
6d143b2
updated group section
henzyd Jan 21, 2025
b4dc011
updated rule section
henzyd Jan 21, 2025
9a2e45c
updated time picker field
henzyd Jan 21, 2025
9947b48
created resource hooks
henzyd Jan 21, 2025
9e0d01d
updated resource service
henzyd Jan 21, 2025
68881e8
fix: search
henzyd Jan 21, 2025
d46ed89
updated resource api
henzyd Jan 21, 2025
423f383
made requested changes
henzyd Jan 21, 2025
92c5edc
updated availability section
henzyd Jan 21, 2025
421c678
updated formDataToObject util function
henzyd Jan 21, 2025
f6cf5e1
updated types
henzyd Jan 21, 2025
d6b6ac9
styled chip
henzyd Jan 22, 2025
6310c29
update
henzyd Jan 22, 2025
d1e7c22
changed method
henzyd Jan 22, 2025
398fc23
updated resource list page
henzyd Jan 22, 2025
a7f56f1
updated resource hooks
henzyd Jan 22, 2025
2355f99
fix: duplicate validation
henzyd Jan 22, 2025
b8706c6
completed create resource page
henzyd Jan 22, 2025
8ec14e8
created update resource endpoint
henzyd Jan 22, 2025
28841ed
created new hooks and service methods
henzyd Jan 22, 2025
78f9751
fix: build error
henzyd Jan 22, 2025
1aa5958
Merge pull request #123 from quantum-brackets/admin-resources
henzyd Jan 22, 2025
f23d711
fix: request size limit error
henzyd Jan 28, 2025
3dbfc4f
Merge pull request #124 from quantum-brackets/admin-resources
henzyd Jan 28, 2025
ffaf5c5
completed create resource flow
henzyd Jan 29, 2025
217bfd0
Merge branch 'staging' of https://github.com/quantum-brackets/45group…
henzyd Jan 29, 2025
a09f78b
Merge pull request #125 from quantum-brackets/admin-resources
henzyd Jan 29, 2025
ff23a2d
created get and delete endpoints
henzyd Feb 3, 2025
d37d2cd
chore: added confirmation prompt
henzyd Feb 3, 2025
b1a89f6
added delete confirmation
henzyd Feb 4, 2025
aaa4706
made requested changes
henzyd Feb 11, 2025
3c9cbe4
Merge branch 'staging' of https://github.com/quantum-brackets/45group…
henzyd Feb 11, 2025
853065d
created update location endpoint
henzyd Feb 12, 2025
aaa31d0
chore: created location details page
henzyd Feb 12, 2025
ddc6f5c
created POST and DELETE media methods
henzyd Feb 13, 2025
cf51c57
updated theme
henzyd Feb 13, 2025
7fea23c
fix: potential db bug
henzyd Feb 13, 2025
589af3a
updated key
henzyd Feb 13, 2025
3376401
chore: created reuseable media modal
henzyd Feb 13, 2025
5bbf183
chore: updated get locations endpoint to include medias
henzyd Feb 13, 2025
7fd61a5
chore: completed location details page
henzyd Feb 13, 2025
d200633
Merge pull request #126 from quantum-brackets/admin-resources
henzyd Feb 13, 2025
075a90e
chore: created filter
henzyd Feb 13, 2025
88581b5
Merge branch 'staging' of https://github.com/quantum-brackets/45group…
henzyd Feb 13, 2025
c3741b8
updated logout modal
henzyd Feb 13, 2025
9409713
refactor
henzyd Feb 13, 2025
6333023
updated table
henzyd Feb 13, 2025
26c1df1
updated hooks and services
henzyd Feb 13, 2025
e948006
updated types
henzyd Feb 13, 2025
a923b46
updated hooks
henzyd Feb 13, 2025
2b77546
fix typo
henzyd Feb 13, 2025
60ee5cc
chore: created schema types
henzyd Feb 13, 2025
6756b83
chore: created upload and delete resource endpoints
henzyd Feb 13, 2025
446a1ae
chore: created POST and DELETE resource rules endpoints
henzyd Feb 14, 2025
299250e
chore: created POST and DELETE methods
henzyd Feb 14, 2025
64d087f
fix: bug
henzyd Feb 14, 2025
3eb175a
updated location details
henzyd Feb 14, 2025
81ba30b
typed
henzyd Feb 16, 2025
d5b7177
refactor
henzyd Feb 16, 2025
4f7130b
updated select field
henzyd Feb 16, 2025
5a4b202
chore: created resource components
henzyd Feb 16, 2025
634c0c4
updated resource tale
henzyd Feb 16, 2025
04a3255
updated chip
henzyd Feb 18, 2025
766e7b9
added type
henzyd Feb 18, 2025
a28e56a
pushing changes after git bug
henzyd Feb 18, 2025
5ce4cc0
added handle and fix type error
henzyd Feb 18, 2025
db5968d
refactor: resource
henzyd Feb 25, 2025
def4df1
fix: type errors
henzyd Feb 25, 2025
d8086eb
chore: updated resource details page
henzyd Feb 25, 2025
19df8ee
fix: select bug
henzyd Mar 3, 2025
088d20c
chore: created booking card
henzyd Mar 3, 2025
31b4935
updated endpoint
henzyd Mar 4, 2025
e155e2d
fix: build error
henzyd Mar 5, 2025
eb8d10f
refactor
henzyd Mar 5, 2025
fca6c0b
fix: build error
henzyd Mar 5, 2025
3ff9c81
fix: build error
henzyd Mar 5, 2025
fc8a9ce
updated migration
henzyd Mar 5, 2025
5019161
Merge pull request #127 from quantum-brackets/admin-resources
henzyd Mar 5, 2025
0579abd
savign changes
henzyd Mar 5, 2025
036293c
Merge branch 'staging' of https://github.com/quantum-brackets/45group…
henzyd Mar 5, 2025
4fea3b8
Merge pull request #128 from quantum-brackets/admin-resources
henzyd Mar 5, 2025
061f16d
Merge branch 'staging' of https://github.com/quantum-brackets/45group…
henzyd Mar 5, 2025
b941747
Merge pull request #130 from quantum-brackets/booking-card
henzyd Mar 5, 2025
3ad4bc2
created details page
henzyd Mar 7, 2025
4613fe9
aded button to card
henzyd Mar 7, 2025
9583cfc
fix: bug in mobile filter
henzyd Mar 7, 2025
b4d4144
Merge branch 'staging' of https://github.com/quantum-brackets/45group…
henzyd Mar 7, 2025
2355f89
Merge pull request #131 from quantum-brackets/booking-details
henzyd Mar 7, 2025
bec4d8b
removed outer layout
henzyd Mar 8, 2025
31e9af4
Merge branch 'staging' of https://github.com/quantum-brackets/45group…
henzyd Mar 8, 2025
c661bc4
Merge pull request #132 from quantum-brackets/booking-details
henzyd Mar 8, 2025
70f862b
fix: delpoy
henzyd Mar 9, 2025
953115b
Merge branch 'staging' of https://github.com/quantum-brackets/45group…
henzyd Mar 9, 2025
3a65d0c
Merge pull request #133 from quantum-brackets/booking-details
henzyd Mar 9, 2025
715d8c9
Merge branch 'main' of https://github.com/henzyd/45group-railway-test…
henzyd Mar 9, 2025
cd6da06
fix: deploy
henzyd Mar 9, 2025
32ccb19
fix: deploy
henzyd Mar 9, 2025
1145890
fix: build error
henzyd Mar 9, 2025
bfc3c96
fix: build error
henzyd Mar 10, 2025
b886b9c
Merge branch 'staging' of https://github.com/quantum-brackets/45group…
henzyd Mar 10, 2025
2f7feed
Merge pull request #134 from quantum-brackets/booking-details
henzyd Mar 10, 2025
fb1bbe0
fix: auth error
henzyd Mar 10, 2025
c2280da
Merge pull request #135 from quantum-brackets/booking-details
henzyd Mar 10, 2025
24ee66d
feat: add analytics tracking
iamogbz May 14, 2025
d46e890
feat: add adsense text file
iamogbz May 14, 2025
990aaf9
chore: add google adsense code
iamogbz May 29, 2025
0273b10
build: firebase studio idx dev settings
iamogbz Jun 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
DATABASE_URL=postgresql://username:password@host:port/db_name

RESEND_API_KEY=re_1234202md

NEXTAUTH_SECRET=secret

BASE_URL=http://localhost:7070

NEXTAUTH_URL=

AWS_IAM_ACCESS_KEY=
AWS_IAM_SECRET_KEY=
AWS_S3_BUCKET_REGION=
AWS_S3_BUCKET_NAME=
36 changes: 36 additions & 0 deletions .github/workflows/staging-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI for Staging

on:
push:
branches:
- staging
pull_request:
branches:
- staging

jobs:
ci:
runs-on: ubuntu-latest
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
RESEND_API_KEY: ${{ secrets.RESEND_API_KEY }}

steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Install dependencies
run: yarn install

- name: Run lint-staged
run: yarn lint-staged

- name: Build project
run: yarn build

- name: Mirgate DB
run: yarn migrate
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,16 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local
# env files
.env*
!.env.example

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

# Sentry Config File
.env.sentry-build-plugin
26 changes: 26 additions & 0 deletions .idx/dev.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{pkgs}: {
channel = "stable-24.05";
packages = [
pkgs.nodejs_20
];
idx.extensions = [

];
idx.previews = {
previews = {
web = {
command = [
"npm"
"run"
"dev"
"--"
"--port"
"$PORT"
"--hostname"
"0.0.0.0"
];
manager = "web";
};
};
};
}
3 changes: 2 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
"trailingComma": "es5",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "always"
"arrowParens": "always",
"plugins": ["prettier-plugin-tailwindcss"]
}
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"IDX.aI.enableInlineCompletion": true,
"IDX.aI.enableCodebaseIndexing": true
}
94 changes: 74 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,90 @@
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
# 45Group

## Getting Started
---

First, run the development server:
## Project Setup

### Install Dependencies

After cloning the repository, install the dependencies using:

```bash
yarn install
```

Ensure that Yarn is installed before running this command. If Yarn is not installed and you prefer using another package manager like npm or pnpm, follow these steps:

1. Delete the `yarn.lock` file.
2. Run the installation command for your chosen package manager, such as `npm install` or `pnpm install`.

### Environment Variables

Before starting the project, ensure you have all the required environment variables. Use the `.env.example` file as a guide to set up the necessary values in your `.env` file.

### Development

To start the project in development mode, run:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
### Production

To run the project in production mode:

1. Build the project:

```bash
yarn build
```

2. Start the production server:

```bash
yarn start
```

### Code Formatting

To format all files using Prettier, run:

```bash
yarn format
```

### Linting

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
To lint all files using ESLint, run:

This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
```bash
yarn lint
```

## Learn More
### Database

To learn more about Next.js, take a look at the following resources:
#### Migrations

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
To migrate the database, run:

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
```bash
yarn migrate
```

## Deploy on Vercel
**Note:** The project uses PostgreSQL as the database.

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
#### Generate Migrations

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
To create migrations from your Drizzle schema, run:

```bash
yarn generate
```

#### Drizzle Studio

To run Drizzle Studio, execute:

```bash
yarn drizzle-studio
```
16 changes: 16 additions & 0 deletions drizzle.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { defineConfig } from "drizzle-kit";
import * as dotenv from "dotenv";

dotenv.config({ path: ".env.local" });
dotenv.config({ path: ".env" });

export default defineConfig({
schema: "./src/db/schemas",
dialect: "postgresql",
out: "./migrations",
dbCredentials: {
url: process.env.DATABASE_URL!,
},
verbose: true,
strict: true,
});
Loading