Welcome to CarIn, a decentralized solution for finding and booking parking spots. This README provides the necessary details to get the project up and running on your local machine.
- /frontend: Contains the Next.js application.
- /smart-contracts: Holds the Calarity Contract.
- Node.js: Version
18.17.0or higher. - npm: Version
9.0.0or higher.
To begin, clone the repository and install the required dependencies for both the frontend and smart contracts.
Navigate to the frontend directory and run the following commands:
npm install
npm run devIn the smart-contracts directory, set up your environment by creating a .env file with the required variables (e.g., PRIVATE_KEY, MUMBAI_RPC_URL). Then, run:
npm install
npx hardhat compilenpm run dev: Starts the development server.npm run build: Builds the application for production.npm run start: Runs the production build.npm run lint: Lints the codebase.
npx hardhat test: Executes the test suite.npx hardhat deploy --network base: Deploys contracts to the Mumbai testnet.
By following these instructions, you'll have a fully functional local environment for both the frontend and smart contracts.