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

feat(examples/basic): Add simple API & option to seed a postgres databse #89

Merged
merged 5 commits into from
Sep 2, 2024

Conversation

jonsherrard
Copy link
Contributor

  • Added seeding script to populate the database with fake data using Faker.js.
  • Created new API endpoints for authentication, feed, and notifications.
  • Updated FeedCard component to support disabling links.
  • Modified database schema to include created_at timestamps for follows and likes.
  • Updated connection logic to handle global database connection.
  • Added new dependencies: @dotenvx/dotenvx, dotenv, @faker-js/faker, tsx.
  • Updated package.json scripts for migrations and seeding.
  • Adjusted profile page image dimensions.
  • Updated README with instructions for database setup, schema generation, migrations, and seeding.

Implementation reason: Introduced seeding capabilities to facilitate testing and development by populating the database with sample data. Enhanced API functionality and improved database schema for better data management.

- Added seeding script to populate the database with fake data using Faker.js.
- Created new API endpoints for authentication, feed, and notifications.
- Updated FeedCard component to support disabling links.
- Modified database schema to include created_at timestamps for follows and likes.
- Updated connection logic to handle global database connection.
- Added new dependencies: @dotenvx/dotenvx, dotenv, @faker-js/faker, tsx.
- Updated package.json scripts for migrations and seeding.
- Adjusted profile page image dimensions.
- Updated README with instructions for database setup, schema generation, migrations, and seeding.

Implementation reason: Introduced seeding capabilities to facilitate testing and development by populating the database with sample data. Enhanced API functionality and improved database schema for better data management.
Copy link

vercel bot commented Sep 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
vrn ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 2, 2024 7:17pm

Base automatically changed from feature/drizzle-setup to main September 2, 2024 19:08
@natew natew merged commit cb72059 into main Sep 2, 2024
5 of 6 checks passed
@natew natew deleted the feature/db-seeding branch September 2, 2024 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants