- next-auth/prisma-adapter: Next.js authentication adapter for Prisma.
- tanstack/react-query: Data fetching and caching library for React.
- trpc/client: TypeScript RPC (Remote Procedure Call) library for client-side communication.
- trpc/next: Next.js integration for trpc.
- trpc/react-query: React Query integration for trpc.
- next: Framework for server-rendered React applications.
- next-auth: Authentication library for Next.js applications.
- tailwindcss: Utility-first CSS framework for rapid UI development.
- src: Main source directory containing all application code.
- src/app: Application-specific code and components.
- src/app/api: API-related functionality for authentication, sending data, and using TRPC.
- src/app/dashboard: Dashboard-related components and functionality.
- src/components: Reusable components used throughout the application.
- src/components/schedule-post: Component for scheduling posts.
- src/components/ui: UI-related components and utilities.
- src/config: Configuration files for the project.
- src/lib: Library code and utilities.
- src/server: Server-side code and APIs.
- Specify the path to the SQL database file.
- Generate a secret key using the command:
openssl rand -base64 32
- Create a new project in the Google Developer Console.
- Enable the Google Sign-in API.
- Go to the Credentials page and create a new OAuth 2.0 client ID.
- Copy the generated client ID.
- Follow the same steps as above to create a Google OAuth 2.0 client ID.
- Copy the generated client secret.
- Create a webhook in a Discord server.
- Copy the webhook URL.
1.Clone the t3-discord-autopost repository:
git clone https://github.com/Vithrax/t3-discord-autopost2.Install the dependencies with one of the package managers listed below:
pnpm install
bun install
npm install
yarn install3.Start the development mode:
pnpm dev
bun dev
npm run dev
yarn dev|
Vithrax 7 contributions |
MIT License
Copyright (c) 2023 Adrian Gajdulewicz
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.