This project is currently a work in progress. There are known issues with consistency, performance, and overall code organization that are being actively addressed.
Prerequisites
Before setting up 5Stack locally, ensure you have the following installed:Node.js
Version 22 or higher (Alpine recommended)
Yarn
Version 4.11.0 (managed by Corepack)
Git
For version control
Code Editor
VS Code or your preferred editor
Installation Steps
Install Dependencies
Install all project dependencies using Yarn:This will install dependencies in immutable mode, ensuring consistency with the lockfile.
Configure Environment Variables
Copy the example environment file and configure it:See the Environment Variables page for detailed configuration.
Starting the Development Server
Start the Nuxt development server:http://localhost:3000 and will be accessible from your local network (binds to 0.0.0.0).
The development server runs in SSR-disabled mode. See
nuxt.config.ts:13 for configuration details.Available Scripts
The following scripts are available in the project:Development Commands
Code Generation
- Connects to your Hasura GraphQL endpoint using environment variables
- Generates TypeScript types and Zeus client code
- Applies custom patches via
scripts/patch-zeus-codegen.sh
Translations
Cloudflare Workers
Project Structure
Key directories in the development environment:Development Features
Hot Module Replacement (HMR)
The development server supports HMR, allowing you to see changes instantly without full page reloads.Nuxt DevTools
DevTools are enabled by default in development mode:Shift + Alt + D in your browser.
PWA Development
The PWA (Progressive Web App) features are enabled in development:Common Issues
Port 3000 already in use
Port 3000 already in use
If port 3000 is already in use, you can specify a different port:
GraphQL connection errors
GraphQL connection errors
Ensure your
.env file has correct values for:NUXT_PUBLIC_API_DOMAINHASURA_GRAPHQL_ADMIN_SECRET
https://{API_DOMAIN}/v1/graphql.Module resolution errors
Module resolution errors
Try clearing the Nuxt cache and node_modules:
Corepack issues
Corepack issues
If you encounter Corepack errors, ensure you’re using Node.js 16.9.0 or higher:
Next Steps
Environment Variables
Configure your environment variables
Docker Deployment
Deploy using Docker containers
Architecture Overview
Learn about the system architecture
GraphQL API
Explore the GraphQL API