Lift Cash is a self-governed, cooperative economic system built on the blockchain that allows participants to democratically manage fiscal policy and earn a meaningful, sustainable crypto income through the wisdom of the crowd.
To install and set up the Lift Cash project locally, follow these steps:
Clone the Lift Cash GitHub repository to your local machine:
git clone https://github.com/ICP-hub/liftcash.git
Navigate to the project folder and install the required dependencies:
npm install
Start the local Internet Computer replica by running the following command:
dfx start --background --clean
Run the following commands to pull and deploy any external dependencies required by the project:
-
Pull Dependencies: This command downloads any required dependencies defined in the
dfx.json
file from the mainnet (or from a specified network):dfx deps pull
-
Initialize Dependencies: This command initializes the dependencies:
dfx deps init
-
Deploy Dependencies: After pulling the dependencies, deploy them on your local replica:
dfx deps deploy
Run the following command to deploy the Lift Cash canisters:
cd scripts
# give permission to the script
chmod +x deploy.sh
# To deploy the canisters to the local replica
./deploy.sh
# To deploy the canisters on IC Mainnet
# ./deploy.sh ic
Run the following command to start the frontend:
npm start
Open your web browser and navigate to http://localhost:3000
to view the Dapp.
To run the tests for the Lift Cash project, run the following command:
cd scripts
# give permission to the script
chmod +x Test.sh
# To run the tests on the local replica
./Test.sh
# To run the tests on the IC Mainnet
# ./init.sh ic
This command will initialize the test environment and run the test cases for the Lift Cash project. When the tests are complete, you will see the test results in the terminal.
Test scripts are able to create new users, and participate in the governance of the Lift Cash project. The tests are designed to simulate the behavior of real users interacting with the Dapp.