This repository contains the Proof of Concept (POC) for Local Plan representations analysis using AI. It brings together all components of the Local Plans Reps Analysis POC, including the application code and the supporting infrastructure‑as‑code.
The project utilizes the following tools to ensure code quality and consistency:
- Linting & Formatting: ESlint, Prettier
- Commit Standards: Commitlint, Husky
- Infrastructure: Docker
- Database ORM: Prisma
Before starting, ensure you have the following installed:
- Node.js (Latest LTS version)
- Docker (Desktop or Engine)
- Clone the repository.
- Install dependencies from the root directory:
- run
npm i
- run
You need to configure environment variables for both the database and the application.
- Database: Copy
packages/database/.env.exampleto create.env. - Application: Copy
apps/manage/.env.exampleto create.env. - Authentication:
- Obtain the
AUTH_*environment variables from a team member and add them toapps/manage/.env. - Alternatively: Set
AUTH_DISABLED=falsein the file.
- Obtain the
The database runs inside a Docker container and is managed via Prisma.
-
Start the database container from the project root:
- run
docker compose up
- run
-
Once the container is running, initialize the database schema:
- run
npm run db-migrate-dev
- run
To start the application:
- run
apps/manage>npm run dev
Run configurations are included for most of the npm scripts. To use them, ensure WebStorm is configured correctly:
- Go to Settings > Languages and Frameworks > Node.js.
- Set the Node interpreter and Package manager fields to your local installations.
MIT © Planning Inspectorate