This project is set up with Docker for a consistent development environment. It leverages React and extensive testing with Cypress.
- Node.js version 16.x (recommended: v16.15.0)
- npm version 6 or higher
- Install dependencies by running:
npm install
- Start the project:
npm run start
- Build the project:
npm run build
Create a .env
file in the /src of your project and specify:
REACT_APP_BACKEND_URL
: URL to the backend server
- Run end-to-end tests:
npm run test
- Directly access a store by appending its URL to
localhost:3000
. For example:No redirection is added for local testing.goldencatch | localhost:3000/goldencatch
- Access a store using
lvh.me:3000
. For example:Stores will be redirected accordingly, e.g.,goldencatch | goldencatch.lvh.me:3000
lvh.me:3000/goldencatch
will redirect togoldencatch.lvh.me:3000
.
The project utilizes Husky for managing pre-commit hooks, and scripts are organized into multiple package.json
files for modular development. See the root package.json
for Docker-specific configurations and the src/package.json
for application-specific scripts.
cy:open
: Opens the Cypress test runner.cy:run
: Runs Cypress tests in headless mode.
Developed by SparkleStar International Corporation, this project is under the MIT license and aims to provide a robust platform for developing e-commerce solutions.