Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema fixes and backend #71

Merged
merged 18 commits into from
Apr 5, 2024
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
deb96ff
refactor: ♻️ included database setup instructions into README.md
adi-lux Mar 12, 2024
e84a09d
refactor: ♻️ added more steps to README.md
adi-lux Mar 12, 2024
80c3721
Merge remote-tracking branch 'origin/main' into aa/schema-fixes-and-b…
adi-lux Mar 14, 2024
da2da53
refactor: ♻️ modified schema.ts for increased normalization
adi-lux Mar 14, 2024
ca92492
fix: 🐛 modified schema to remove primary key error
adi-lux Mar 14, 2024
c53e8cb
refactor: ♻️ overhauled api directory structure to match specification
adi-lux Mar 14, 2024
83bb95c
chore: 🔧 uninstalled prisma
adi-lux Mar 14, 2024
d2d0f7c
Revert "chore: 🔧 uninstalled prisma"
adi-lux Mar 14, 2024
9a039e1
feat: ✨ added boilerplate to all api routes
adi-lux Mar 14, 2024
a45fe88
refactor: ♻️ removed api routes, modified schema.ts for flatter hiera…
adi-lux Mar 27, 2024
b21b268
refactor: ♻️ temporarily removed migration, clarified schema changes
adi-lux Apr 5, 2024
791e5da
refactor: ♻️ modified scripts
adi-lux Apr 5, 2024
5995159
Merge branch 'main' into aa/schema-fixes-and-backend
adi-lux Apr 5, 2024
0d652f9
fix: 🐛 remove redundant import and script order
adi-lux Apr 5, 2024
789fe21
Merge remote-tracking branch 'origin/aa/schema-fixes-and-backend' int…
adi-lux Apr 5, 2024
a6f8e11
chore: 🔧 remove redundant import after merge
adi-lux Apr 5, 2024
97af4e4
chore: 🔧 remove unused page
adi-lux Apr 5, 2024
4666f32
refactor: ♻️ removed migration from postinstall
adi-lux Apr 5, 2024
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
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ vite.config.ts.timestamp-*
.sst
cdk.context.json

# db
src/lib/db/meta
src/lib/db/*.sql
# db, temporary until first release
/src/lib/db/migrations/
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Simple, clean, and efficient meeting scheduling app.
## Tech Stack

- [**S**ST](https://sst.dev)
- [**P**risma](https://prisma.io)
- [**D**rizzle](https://orm.drizzle.team/)
- [Svelte**K**it](https://kit.svelte.dev)
- [**L**ucia](https://lucia-auth.com)

Expand All @@ -30,6 +30,15 @@ Simple, clean, and efficient meeting scheduling app.
1. `pnpm start` (run `pnpm start --host` if you want to access the server from other devices on your network)
4. The app should be viewable at `localhost:5173` by default. Changes to the code will automatically update the page. If you ran `pnpm start --host`, you can access the app from other devices on your network at `host-ip:5173`.

### Local Database Setup

1. Go to the [postgres official website](https://www.postgresql.org/download/) and download the database for your specific OS. \([Here](https://www.postgresql.org/docs/16/tutorial-start.html) is more information, if you get stuck)
2. While running the setup, ensure that pgAdmin is downloaded alongside postgres itself
adi-lux marked this conversation as resolved.
Show resolved Hide resolved
3. Once connected to the Postgres Server, Right click on databases -> create -> database, and name it `zotmeet`.
4. In the ZotMeet project root directory,`pnpm db:update` will generate a migrations folder which contain scripts you can run to update your database schema.
5. Create a .env file, and set `DATABASE_URL=postgres://yourusername:yourpassword@localhost:5432/zotmeet`
6. Using pgAdmin, run all the migration files in order. This can be done using the query tool.

### Committing Changes

- Follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/#summary) specification when writing commit messages.
Expand Down
2 changes: 1 addition & 1 deletion drizzle.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if (!DATABASE_URL) {

export default {
schema: "./src/lib/db/schema.ts",
out: "./src/lib/db",
out: "./src/lib/db/migrations",
driver: "pg",
dbCredentials: {
connectionString: DATABASE_URL,
Expand Down
134 changes: 0 additions & 134 deletions migrations/0000_worried_nightcrawler.sql

This file was deleted.

1 change: 0 additions & 1 deletion migrations/0001_vengeful_korg.sql

This file was deleted.

Loading
Loading