Here's a guide to setting up Taskflow on your local machine for development and testing. Make sure your system meets these prerequisites:
Before you begin, ensure your system meets these requirements:
- Have the latest versions of npm and Node.js installed.
- Compatible with Windows, Linux, or macOS.
-
Clone the Repository
Open your terminal and clone the Taskflow repository using this command
git clone https://github.com/username/projectname.git
-
Move into the Project Directory
cd projectname -
Install Dependencies
Use npm to install all necessary project dependencies
npm install
-
Start the Convex Server
npx convex dev
-
Note on Configuration File
Move on to the subsequent steps if there isn't an existing
.envfile in the root directory. Otherwise, follow steps 8 through 10 to configure the necessary settings. -
Set Up the .env File
Create a
.envfile in your root folder and add the following keysCONVEX_DEPLOYMENT= NEXT_PUBLIC_CONVEX_URL= NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY= CLERK_SECRET_KEY= EDGE_STORE_ACCESS_KEY= EDGE_STORE_SECRET_KEY=
-
Configuring the Database
Register for a Convex account. Retrieve the security keys and insert them into the
.envfile by providing the required details:CONVEX_DEPLOYMENT= NEXT_PUBLIC_CONVEX_URL=
-
Configure Authentication
Sign up for a Clerk account. Add authentication factors like Google, GitHub, etc. Copy the security keys and paste them into the
.envfileNEXT_PUBLIC_CLERK_PUBLISHABLE_KEY= CLERK_SECRET_KEY=
-
Edge Store Integration
Register for an Edge Store account for banner image storage. Copy the security keys and paste them into the
.envfileEDGE_STORE_ACCESS_KEY= EDGE_STORE_SECRET_KEY=
-
Start the Web Server
Open another terminal and run the following command for the server
npm run devOnce the server starts, a link will appear in the terminal. Open this link in your web browser to experience Taskflow.
Follow these steps carefully. If you encounter any issues during installation, refer to the error messages or reach out to our support team for assistance. Enjoy using Taskflow for development and testing purposes!