- AWS CLI installed and configured (
aws configure). - Node.js and npm installed (for AWS CDK).
- Python 3.9+ installed.
- AWS CDK installed globally:
npm install -g aws-cdk.
# Create virtual environment
python3 -m venv venv
source venv/bin/activate
# Install dependencies
pip install -r requirements.txtRun the provided deployment script:
./deploy.shWait for the deployment to finish. It will output the API Gateway Endpoint URL, Cognito User Pool ID, and Client ID.
Example: API Gateway Endpoint URL : https://766rfgtx1b.execute-api.us-east-1.amazonaws.com/prod/ Cognito User Pool ID : us-east-1_9nv5wm5GT Client ID : 1hec9e6q69fmfta89mm1l8o1ds
The project now includes a modern React frontend.
-
Navigate to the
frontenddirectory:cd frontend -
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser at
http://localhost:5173.- Login with:
demo-user@example.com/DemoUser123! - Enjoy the delicate and attractive interface!
- Login with:
-
If the user is not configured yet, try manually create a new user inside console(under Cognito) To set permanent password via CLI(example): aws cognito-idp admin-set-user-password
--user-pool-id us-east-1_9nv5wm5GT
--username demo-user@example.com
--password DemoUser123!
--permanent
--region us-east-1
You can still use the python script to test the backend directly:
- Configure
client.py:API_ENDPOINT = "https://xyz.execute-api.us-east-1.amazonaws.com/prod" COGNITO_CLIENT_ID = "..."
- Run:
python client.py
- Sharing: Use the API or Postman to call
POST /sharewith{ "file_path": "test_upload.txt" }. - Search: Call
GET /search?q=test.