Clonestoxx is a full-stack application that allows users to copy trade from experienced traders on the Upstox platform. The application consists of a Next.js frontend and a Node.js backend.
- Create and manage master and child accounts
- Set up cloners to mirror trades from a master account to child accounts
- Modify order quantities for child accounts based on a configurable modifier percentage
- Real-time trade execution and synchronization across accounts
- User-friendly dashboard for monitoring and managing accounts and cloners
- Next.js
- React
- TailwindCSS
- Axios
- Zod (for data validation)
- NextAuth.js
- Prisma (ORM)
- Node.js
- Express
- Prisma (ORM)
- MongoDB
- Puppeteer (for web scraping)
- Upstox API (for trading)
- Node.js installed on your machine
- MongoDB database set up
-
Clone the repository:
-
Install dependencies for the frontend:
cd clonestoxx/frontend npm install
-
Install dependencies for the backend:
cd ../backend npm install
-
Set up environment variables for the frontend and backend. You'll need to create
.env
files in the respective directories and add the required variables (e.g., database URL, API keys, etc.). Env examples have been provided -
Migrate Prisma Schema to Database & Generate Prisma Client
cd ../frontend npm run dbpush npm run prismaclient
-
Generate client on Backend
cd ../backend npx prisma generate
-
Start the frontend development server:
cd ../frontend npm run dev
-
Start the backend server:
cd ../backend node index.js
The application should now be running at http://localhost:3000
.
DATABASE_URL="YOUR_MONGODB_CONNECTION_STRING"
NEXT_PUBLIC_RESEND_API_KEY="YOUR_RESEND_API_KEY"
NEXTAUTH_SECRET="YOUR_JWT_SECRET"
UPLOADTHING_SECRET="YOUR_UPLOADTHING_SECRET"
NEXT_PUBLIC_UPLOADTHING_APP_ID="YOUR_UPLOADTHING_APP_ID"
CLONESTOXX_BACKEND="YOUR_BACKEND_URL"
DATABASE_URL="YOUR_MONGODB_CONNECTION_STRING"
PORT_NUMBER="YOUR_BACKEND_PORT"
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.