Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

tysaiwofc/TwitterX-Clone

Repository files navigation

Twitter/X Clone

This project is a study project only, I dedicated my time to improve my skills in NextJS and now I am doing a project to test them.

Prerequisites

Before you begin, ensure you have the following tools installed:

  • Node.js (v12 or higher)
  • MySQL (or another database compatible with Prisma)

Steps to Start the Project

1. Clone the Repository

Clone this repository to your local machine:

git clone <repository-url>
cd <repository-name>

2. Install Prisma and Dependencies

npm install

3. Set Up the Database

Before initializing the project, you need to have a SQL database set up.

  • Ensure your database is running.
  • Create a database named default or modify the DATABASE_URL variable in the .env file to point to your database.

4. Configure the .env File

Create a .env file in the root of the project and add the following environment variables:

DATABASE_URL="mysql://[email protected]:3306/default"
SECRET="UltraSecretToken"
NEXTAUTH_URL="http://localhost:3000"

5. Run Prisma Migrations

Run the Prisma migrations to create the tables in your database:

npx prisma migrate dev

6. Initialize the Upload Server

The upload server is located in the upload-server folder. To initialize it, navigate to that folder and run:

cd upload-server
node server.js

7. Start the Main Server

After initializing the upload server, go back to the root of the project and start the main server:

npm run dev

8. Access the Application

Now you can access your application at http://localhost:3000.

Contributors

photo
Banana
photo
Tysaiw
photo
Isabelly

Example Image

soon.

Releases

No releases published

Packages

No packages published