This project is licensed under the terms of the GNU Affero General Public License v3.0, with an additional clause for commercial use. Please see the LICENSE.md file for details.
Create a new .env file in your root directory with the following properties:
APP_AWS_ACCESS_KEY_ID=<AWS-ACCOUNT-ACCESS-KEY>
APP_AWS_SECRET_ACCESS_KEY=<AWS-ACCOUNT-SECRET>
APP_AWS_PROJECT_REGION=<PROJECT-REGION>
APP_AWS_COGNITO_IDENTITY_POOL_ID=<COGNITO-POOL-ID>
APP_COGNITO_USER_POOL_ID=<COGNITO-USER-POOL-ID>
APP_COGNITO_CLIENT_ID=<COGNITO-CLIENT-ID>
APP_COGNITO_USER_POOL_WEB_CLIENT_ID=<COGNITO-WEB-CLIENT-ID>
OAUTH_DOMAIN=<OAUTH-DOMAIN> (optional - not used)
REDIRECT_SIGN_IN=<REDIRECT> (can be anything but probably just keep at http://localhost:3000)
REDIRECT_SIGN_OUT=<REDIRECT> (can be anything but probably just keep at http://localhost:3000)
Finally you can add a database connection string
For connection string format see Prisma's PostgresSQL docs on how to connect your database
DATABASE_URL="postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public"
Make sure to install the dependencies:
yarn install
You can nows specify an instructor directory (users who can sign up as an instructor):
// directory.json
{
"directory": [
{
"name": "Jane Doe",
"email": "[email protected]"
}
]
}
After providing a valid database connection string, you will have to generate the database structure like so:
npx prisma migrate dev
Start the development server on http://localhost:5173
npm run dev
Build the application for production:
yarn run build
Locally preview production build:
yarn run preview
Check out the deployment documentation for more information.
Contributors: