sveltekit-twitter-clone Svelte Themes

Sveltekit Twitter Clone

Barebones Twitter clone built with the Sveltekit, Lucia Auth, Prisma and Faker.js

SvelteKit Twitter Clone

Barebones Twitter clone built with the Sveltekit, Lucia Auth, Prisma and Faker.js to mock database data. Uses sqlite for prototyping but can easily be changed to Postgres or MySQL.

🌟 Features

  • Register, Sign Users
  • Follow, Unfollow Users
  • Read, Create, Delete Tweets
  • Personal feed based on who you follow
  • Browser user to Follow

πŸ“š Table of Contents

πŸ’» Development

πŸ“¦ Installation

npm install

πŸ—’οΈRename env.example to .env

DATABASE_URL="file:./data.db?connection_limit=1"

πŸ—„οΈ Set up the database

# Generate prisma client
npx prisma generate

# Setup the database
npx prisma db push

# Seed the database
npx prisma db seed

πŸš€ Running the app

# development
npm run dev

# build
npm run build

# start
npm run preview

πŸ™‹β€β™‚οΈ Test user for login

  {
    username: "testuser",
    password: "password",
  }

Top categories

Loading Svelte Themes