block-quote On this pagechevron-down
copy Copy chevron-down
Deployment & CI/CD 1️⃣ Local Deployment To get the TechTonic app running locally on your machine for development or testing, follow these steps to clone the repositories, install dependencies, configure environment variables, and start the
Clone the backend repository
Copy bashCopyEditgit clone https://github.com/your-org/techtonic-backend.git
cd techtonic-backend
Copy bashCopyEditnpm install Configure environment variables
Copy the example environment file and update it with your database credentials, API keys, and other secrets.
Copy bashCopyEditcp .env.example .env
nano .env Fill in variables like DB_URI, JWT_SECRET, CLOUDINARY_API_KEY, etc.
Copy bashCopyEditnpm run dev The server will run on http://localhost:3000 by default.
Frontend Setup (Flutter)
Clone the frontend repository
Install Flutter dependencies
Create or update environment config files if any (e.g., .env, or Flutter .dart config files).
For Android:
For web:
Make sure your backend server is running so the frontend can connect.
Troubleshooting
Common issues:
Backend fails to start: check .env variables and MongoDB connection
Flutter app shows API errors: verify backend URL and network connectivity
Port conflicts: change ports in .env or Flutter config if needed
Last updated 8 months ago