Welcome to the TaskTitan.ai developer setup guide! This guide will walk you through setting up the TaskTitan.ai Community Core app on your own machine. Let's get started! 🎉
Demo Video (click to watch):
Before we begin, make sure you have the following installed:
- Node.js (v18 or later)
- npm (v8 or later)
- Git
Open your terminal and run:
git clone https://github.com/TaskTitan/community-core
cd tasktitan-ai
- Navigate to the backend directory:
cd backend
- Install dependencies:
npm install
- Copy the
.example.env
file and save as.env
:
cp .example.env .env
- Open the new
.env
file and save your environment variables:
# CREATE A JWT AND SESSION SECRET
JWT_SECRET=your_jwt_secret_here
SESSION_SECRET=your_session_secret_here
# SET YOUR ENV VARIABLES FOR ALL THIRD PARTY APPS NEEDED
OPENAI_API_KEY=your_openai_api_key_here
CLAUDE_API_KEY=your_claude_api_key_here
# more as needed....
- Start the backend server:
npm run dev
- Open a new terminal window and navigate to the frontend directory:
cd frontend
- Install dependencies:
npm install
- Open the
user.config.js
file and update the frontend user variables:
// *** USER CONFIGURATIONS ***
// ***************************
// EMAIL DOMAIN TO USE FOR SENDING / RECEIVING
export const IMAP_EMAIL_DOMAIN = {
BASE_DOMAIN: "yourdomain.com", // CHANGE THIS TO YOUR EMAIL DOMAIN!
};
// ADD LLM PROVIDERS / MODELS TO FRONT END
export const AI_PROVIDERS_CONFIG = {
providers: ["OpenAI", "Anthropic", "TogetherAI"],
modelsByProvider: {
OpenAI: ["gpt-4o-mini", "gpt-4o"],
Anthropic: ["claude-3-haiku-20240307", "claude-3-5-sonnet-20240620"],
TogetherAI: ["mistralai/Mixtral-8x22B-Instruct-v0.1","meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo",],
},
};
- Start the frontend development server:
npm run dev
Once both servers are running, access the application in your web browser:
- Frontend:
http://localhost:5173
(or the port specified in user.config.js) - Backend API:
http://localhost:3333
(or the port specified in your .env file)
If you encounter any issues during setup, please check the following:
- Ensure all required dependencies are installed.
- Verify that the specified ports are not being used by other applications.
- Ensure that the
API_CONFIG.BASE_URL
in the frontenduser.config.js
matches your backend server address and port. (port 3333 by default)
💡 Pro Tip: Use the debug mode in your IDE or browser developer tools to step through your code and identify where issues occur.
Now that you have your local development environment set up, you're ready to start building with TaskTitan.ai! Here are some suggested next steps:
- 📚 Explore the project structure and familiarize yourself with the codebase.
- 🧪 Try making your own tools and workflows to see how the application works.
- 🐞 Set up your debugging environment for more efficient development.
- 📝 Review the existing documentation and consider contributing to it.
Happy coding! 🛠️💻