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

Add backend #37

Merged
merged 9 commits into from
Jan 24, 2024
Merged

Add backend #37

merged 9 commits into from
Jan 24, 2024

Conversation

jsun969
Copy link
Member

@jsun969 jsun969 commented Jan 23, 2024

Description

Add backend

Changes Made

  1. Add database integration with drizzle orm and turso.
  2. Add api for member join.

Related Issues

close #18

Additional Notes

Read the updated readme and env example to initialize database first.

@jsun969 jsun969 changed the title Add database configuration and schema Add backend Jan 23, 2024
@jsun969 jsun969 marked this pull request as ready for review January 23, 2024 14:40
Copy link
Contributor

@rayokamoto rayokamoto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, only a few minor changes needed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we maybe have a newline to separate out each of the constants?

src/db/schema.ts Outdated

emailPreferences: text('email_preferences', { mode: 'json' }),

membershipExpiredAt: integer('membership_expired_at', { mode: 'timestamp' }),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to membershipExpiresAt and membership_expires_at as membership could still be ongoing (it doesn't really make sense to say "expired" if it hasn't, if you get what I mean).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really need to learn more English 🤣

@jsun969 jsun969 requested a review from rayokamoto January 23, 2024 16:39
@rayokamoto rayokamoto merged commit c2dba5c into main Jan 24, 2024
2 checks passed
@jsun969 jsun969 deleted the backend branch January 24, 2024 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Database
3 participants