Prerequisites
Before installing API Master, ensure you have the following installed on your system:- Node.js: Version 18.x or higher
- npm: Version 8.x or higher (comes with Node.js)
- Git: For cloning the repository
You can verify your Node.js and npm versions by running:
Installation Methods
Clone the Repository
Clone the API Master repository to your local machine:Or download the ZIP file and extract it to your desired location.
Install Dependencies
Install all required dependencies using your preferred package manager:This will install the following core dependencies:
express(^4.18.2) - Web frameworkcors(^2.8.5) - CORS middlewaremulter(^1.4.5-lts.1) - File upload handling
typescript(^5.9.3) - TypeScript compilerts-node(^10.9.2) - TypeScript executionnodemon(^3.0.1) - Development serveresbuild(^0.27.2) - Fast bundler
Create Required Directories
Create the uploads directory for storing uploaded files:
The
uploads directory is automatically created when the first file is uploaded, but creating it manually ensures proper setup.Project Structure
After installation, your project structure should look like this:Key Files:
app.ts- Express server setup with CORS and middleware configurationsrc/routes/userRoutes.ts- Multer configuration for file uploadssrc/controllers/userController.ts- File upload logic and response handling
Next Steps
Now that you have installed API Master, you can:- Configure your application - Set up environment variables and customize CORS settings
- Deploy to production - Learn how to build and deploy your API
- Explore the API - Start using the file upload endpoints