This is a Twitter app.
- MySQL Community Server 8.0.30 or higher
- Node.js 18.4.0 or higher
- npm 8.13.2 or higher
Here are the steps:
- 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
- Create a database named twitter-app
- Create a .env file by copying .env.example at the top level of the project
- 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
- Push the initial schema to the database:
npx prisma db push
- Run locally
# Start the server and open the app in a new browser tab
npm run dev -- --open
- Insert initial data only for the first time
👉 Upvote popular feature requests
Copyright (c) sinProject Inc. All rights reserved.
Licensed under the MIT license.