This is a well-structured guide for running the Space App Proof of Concept (PoC). Here's a concise breakdown of the steps and commands:
Run the following command to install all necessary dependencies:
npm installAfter dependency installation, explore the available scripts to understand the different operations you can perform during development, testing, and production.
Start the Development Server Run the following command to start the server in development mode:
npm run devBuild for Production Use the following command to build the app for production:
npm run buildRun the Test Suite
Run this command to execute all unit tests:
npm run test
If you want to run tests without continuously watching for changes, use:
npm run test:no-watch
To generate a coverage report after running tests, use:
npm run test:coverage
Lint the Codebase Run this command to lint your code:
npm run lint
Preview Production Build To preview the app as it would look in production, use:
npm run preview
Set Up Husky for Git Hooks This command sets up Husky for managing Git hooks:
npm run prepare
Run Linting, Tests, and Coverage Before Committing.
This command ensures code quality by running linting, tests, and coverage checks before committing:
npm run pre-commit
Generate Code from GraphQL Schema.
This command updates your backend schema using Codegen:
npm run generate
Codegen - https://the-guild.dev/graphql/codegen
Visit the docs folder for detailed configurations and project documentation.
Since this app synchronizes backend structures with the frontend, discuss how often backend changes might occur and the impact on the current structure before proceeding.