Twitter App


What is Twitter App?

This is a Twitter app.

Prerequisites

Prerequisites for signing in with Twitter

Setting up the project

Here are the steps:

  1. Get the project and setup:
# Clone the repo to your current directory
git clone https://github.com/sinProject-Inc/twitter-app.git

# Install the dependencies
cd /twitter-app
npm install
  1. Create a database named twitter-app
  2. Create a .env file by copying .env.example at the top level of the project
  3. rewrite the env file:
DATABASE_URL="mysql://user:password@localhost:3306/twitter-app"

TWITTER_CLIENT_ID = {client-id}
TWITTER_CLIENT_SECRET = {client-secret}
TWITTER_CALLBACK_URL = http://localhost:5173/sign_in
  1. Push the initial schema to the database:
npx prisma db push
  1. Run locally
# Start the server and open the app in a new browser tab
npm run dev -- --open
  1. Insert initial data only for the first time

Feedback

šŸ‘‰ Ask a question

šŸ‘‰ Request a new feature

šŸ‘‰ Upvote popular feature requests

šŸ‘‰ Create a bug report

šŸ‘‰ Become a sponsor

License

Copyright (c) sinProject Inc. All rights reserved.

Licensed under the MIT license.

Top categories

Loading Svelte Themes