These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Node.js (v14 or later)
- npm (usually comes with Node.js)
- dfx (Internet Computer SDK)
-
Clone the repository:
git clone https://github.com/IC-DAPPS/rust-svelte-gix cd rust-svelte-gix
-
Install dependencies:
npm install
-
Install playwright:
npx playwright install --save-dev
- Start the Internet Computer local network:
dfx start --clean
In a new terminal, you can run the tests:
To run all tests:
npm run test
To run specific tests:
- For card component:
npm run test:card
- Svelte - The web framework used
- Internet Computer - Deployment platform
- Playwright - Testing framework
-
Install Docker Desktop:
- macOS: Download and install from Docker Desktop for Mac
- Linux: Follow the instructions for your specific distribution on Docker's official documentation
-
Ensure Docker Desktop is running on your laptop:
- Open Docker Desktop application
- Wait for the Docker engine to start (you'll see a green "Running" status)
-
Open a terminal or command prompt
-
Navigate to your project directory:
cd path/to/your/project
-
Build the Docker image:
npm run build:docker
-
Run the tests:
npm run run:docker
Note: Make sure Docker Desktop is running before executing these commands. If you encounter any issues, check Docker Desktop's status and restart it if necessary.
-
Install Podman:
- For most Linux distributions, use your package manager. For example, on Ubuntu:
sudo apt-get update sudo apt-get install -y podman
- For most Linux distributions, use your package manager. For example, on Ubuntu:
-
Build the Podman image:
npm run build:podman
-
Run the tests:
npm run run:podman
Note: Podman is not officially supported on macOS. If you're using macOS, we recommend using Docker.
This project is licensed under the MIT License - see the LICENSE.md file for details