Note: This project may not build on a Windows environment. Prior to August 2024 it was working; it doesn't work now and I'm not going to waste time trying to fix it.
Install Node.js v20.17.0.
To install dependencies, run:
npm install
You may need to use --force
as the project uses fairly old dependencies.
The site uses Cloud Firestore to save gear comparisons to allow users to share via URL. To set up Firestore for local development, perform the following steps:
- Follow the "Create a Cloud Firestore database" step here: https://firebase.google.com/docs/firestore/quickstart#create
- Create a
firebase_config.ts
file inside the /src folder of the project. - Follow the "Get config object for your web app" step here: https://support.google.com/firebase/answer/7015592. Copy the firebaseConfig object into the
firebase_config.ts
file. - Add
export default firebaseConfig;
tofirebase_config.ts
.
Afterwards, your firebase_config.ts
will look something like this:
const firebaseConfig = {
apiKey: "###",
authDomain: "###",
databaseURL: "###",
projectId: "###",
storageBucket: "###",
messagingSenderId: "###",
appId: "###",
};
export default firebaseConfig;
If you get ERR_OSSL_EVP_UNSUPPORTED
errors, check out solutions here:
https://stackoverflow.com/questions/70582072/npm-run-fails-with-err-ossl-evp-unsupported
npm run serve
npm run build
npm run lint