Project Structure
Directories
baseline follows a separation of concerns between the client, the server, and volatile application data.
client/: Root directory for all frontend application source code.server/: Root directory for all backend application source code.var/: Contains volatile data and build artifacts. This folder holds runtime-generated data and should typically be excluded from version control.logs/: Stores application log files for debugging and monitoring.dist/: Contains the production-ready frontend build output generated byvite.uploads/: Stores user-uploaded files.
node_modules/: A folder containing what feels like petabytes of JavaScript dependencies.
Configuration Files
baseline uses several configuration files to manage linting, formatting, database schemas, and orchestration.
| File | Description | Related Documentation |
|---|---|---|
.editorconfig | Defines consistent coding styles for multiple editors. | Prettier |
.dockerignore | Defines which files should not be part of a deployment build | Docker Deployment |
baseline | The baseline CLI helper | CLI |
compose.yaml | Orchestrates multi-container environments using Docker. | Docker |
drizzle.config.js | Configures the Drizzle ORM (Object-Relational Mapping) environment. | Drizzle ORM |
Dockerfile | Dockerfile for building a deployable image build | Docker Deployment |
eslint.config.js | Defines linting rules to maintain code quality. | ESLint |
.env, .env.example | Environment variables. | Configuration Env Vars |
vite.config.js | Configures the Vite build tool. | Vite |
.vscode/* | (Optional) Contains VSCode-specific presets and suggested extensions. | N/A |