1.6 KiB
Unisono Project
This project implements a collaborative idea generation and harmonization tool.
Simple HTTP Auth Feature
This feature provides a basic HTTP authentication mechanism for the Single Page Application (SPA).
Setup
-
Create a
.envfile in thebackend/directory:cd backend touch .envAdd the following line to
backend/.env, replacingYOUR_PASSPHRASE_HEREwith your desired secret passphrase:AUTH_PASSPHRASE=YOUR_PASSPHRASE_HERENote: If
AUTH_PASSPHRASEis missing or empty, the application will start without authentication. -
Build and run the application using Docker Compose:
docker-compose up --buildThis will build the frontend and backend services and start them.
Usage
-
Access the application: Open your web browser and navigate to
http://localhost:3000. -
Enter the passphrase: You will be presented with a screen prompting you to enter the passphrase. Enter the passphrase you configured in
backend/.env. -
Access the SPA: Upon successful authentication, you will gain access to the Single Page Application. Your access will be preserved for the duration of your browser session.
Deployment
The application is designed to be deployed to a custom host. This requires configuring environment variables for the frontend and backend to ensure they can communicate correctly without CORS errors.
For detailed instructions on how to configure the application for a custom domain, please see the Deployment Quickstart Guide.