Portfolio Milestone 1: API Gateway Interfaces
Environment Setup
Before beginning this milestone, initialize the professional folder structure for this track on your PC:
npx voidx-verify --init="typescript"
The setup command generated the following structure: typescript-milestones/src/, public/, package.json, tsconfig.json.
Milestone 1: API Gateway Interfaces
Define the core architectural blueprints for the Type-Safe API Data Gateway using strict interfaces. We will establish the shape of our API configurations and endpoints, utilizing optional and readonly properties.
Step 1: Update Your Architecture
Update your existing src/index.ts: We will declare an ApiEndpoint interface and a GatewayConfig interface.
Local CLI Verification
Once you have written your code in your local editor, run this command to verify your milestone and secure your progress:
npx voidx-verify --token="<YOUR_TOKEN>" --skill="typescript" --challenge="ts-project-milestone-1" --file="src/index.ts"
Pending Local Verification
Run the CLI verification to unlock
Starter Code
Use the following starter code in your local project file:
// ========================================== // LOCAL CAPSTONE PROJECT // ========================================== // This is a continuous local project. // Please continue working in your local IDE. // // When you've implemented this milestone's // requirements, run 'voidx verify' in your // terminal to check your progress! // ==========================================
Knowledge Check
Ready to test your understanding of Portfolio Milestone 1: API Gateway Interfaces?