You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This guide will help you set up the frontend application for the Home Energy
Analysis Tool (H.E.A.T.) project. Please follow these instructions carefully.
Prerequisites
Install Git Large File Storage (Git LFS)
Git LFS is required to manage large files in the repository. Choose one of the
methods below to install it:
Copy the example environment file into a new .env file:
cp .env.example .env
Node.js Setup
The project requires Node.js version 18 to avoid engine errors with node v19+. Use Node Version Manager (NVM)
for managing Node.js versions (nvm is preinstalled in coding spaces).
Ditch analysis paralysis and start shipping Epic Web apps.
This is an opinionated project starter and reference that allows teams to
ship their ideas to production faster and on a more stable foundation based
on the experience of Kent C. Dodds and
contributors.
H.E.A.T. Frontend Setup Documentation
This guide will help you set up the frontend application for the Home Energy
Analysis Tool (H.E.A.T.) project. Please follow these instructions carefully.
Prerequisites
Install Git Large File Storage (Git LFS)
Git LFS is required to manage large files in the repository. Choose one of the
methods below to install it:
Method 1: Using Homebrew (Recommended)
Method 2: Manual Installation
For more details, visit the
official documentation.
Repository Setup
Clone the repository:
Navigate to the project directory:
cd home-energy-analysis-tool/heat-stack
Copy the example environment file into a new
.env
file:Node.js Setup
The project requires Node.js version 18 to avoid engine errors with node v19+.
Use Node Version Manager (NVM)
for managing Node.js versions (nvm is preinstalled in coding spaces).
Install NVM (Official Method)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
Install Dependencies and Build
Install project dependencies:
Build the rules engine into the
public/pyodide-env
folder (note, you may need to run this each time you switch to a new branch):Start the development server:
If you encounter errors during this process, try the following steps:
node_modules
folder andpackage-lock.json
file:Setting Up in GitHub Codespaces
If using GitHub Codespaces, follow these steps:
Navigate to the project directory:
cd home-energy-analysis-tool/heat-stack
Create an environment file:
Use Node.js version 18:
Install dependencies and build:
Disable auto-save in VSCode (this is to avoid auto recompiling and page
refresh while making changes):
this Stack Overflow post.
Handling Special Cases
Updating Pyodide
If the version of Pyodide changes or you encounter issues with the Pyodide
environment:
cp ./node_modules/pyodide/* public/pyodide-env/
numpy
wheel file is in thepublic/pyodide-env
folder.If missing:
Pyodide releases.
numpy
wheel file.public/pyodide-env
folder.numpy
file matches the version.Fixing Loader Errors
If you encounter a loader error, run:
Additional Notes
npm audit fix
command can resolve minor dependency issues.Script Overview
Below is a table summarizing the available scripts in the project:
npm run build
npm run build:icons
npm run build:remix
npm run build:server
npm run predev
npm run dev
npm run prisma:studio
npm run format
npm run lint
npm run setup
npm run start
npm run start:mocks
npm run test
npm run buildpy
public/pyodide-env
folder.npm run coverage
npm run test:e2e
npm run test:e2e:run
npm run test:e2e:install
npm run typecheck
npm run validate
Epic Stack Docs:
The Epic Stack 🚀
Ditch analysis paralysis and start shipping Epic Web apps.This is an opinionated project starter and reference that allows teams to ship their ideas to production faster and on a more stable foundation based on the experience of Kent C. Dodds and contributors.
The Epic Stack
Watch Kent's Introduction to The Epic Stack
"The Epic Stack" by Kent C. Dodds
Docs
Read the docs
(please 🙏).
Support
discussion on GitHub
and the KCD Community on Discord.
idea discussion
for suggestions.
report a bug.
Branding
Want to talk about the Epic Stack in a blog post or talk? Great! Here are some
assets you can use in your material:
EpicWeb.dev/brand
Thanks
You rock 🪨
The text was updated successfully, but these errors were encountered: