- Navigate to the backend directory:
cd backend
- Run the backend server:
go run cmd/server/main.go
- Navigate to the frontend directory:
cd frontend
- Install dependencies:
npm install
- Create an environment file:
- Create a
.env
file in the frontend directory. - Add the following environment variables:
VITE_BASE_URL="http://localhost:<BACKEND_SERVER_PORT>"
- Create a
- Start the development server:
npm run dev
Follow these steps to configure Amazon Cognito for authentication:
-
Navigate to Cognito
- Go to the AWS Management Console and open Cognito.
-
Create a User Pool
- Configure authentication settings as per your requirements.
-
Retrieve Credentials
- Once the User Pool is set up, obtain the necessary credentials:
- User Pool ID
- App Client ID
- Once the User Pool is set up, obtain the necessary credentials:
-
Update Application Configuration
- Add the retrieved credentials to your application's configuration file (e.g.,
config.yml
). - Enable the following settings in Cognito's app-client:
- Choice-based sign-in
- Username and password authentication
- Get user tokens from existing authenticated sessions
- Secure Remote Password (SRP) protocol
- Add the retrieved credentials to your application's configuration file (e.g.,
For more details, refer to the official AWS documentation.
To use OpenAI services, obtain an API key from OpenRouter:
- Visit OpenRouter and sign up if you don't have an account.
- Generate an API key from your OpenRouter dashboard.
- Add the API key to your
config.yml
file.
This guide follows the project implementation approach. If you encounter any issues, check the AWS documentation or relevant project files.