This guide provides instructions for setting up, running, and maintaining the LensSocialScore project.
The project uses a monorepo structure with the following packages:
packages/nextjs
: The frontend application built with Next.js.packages/foundry
: Smart contracts and backend logic, built with Foundry and Hardhat.
Ensure you have the following installed:
- Node.js (version 16 or later)
- Yarn (version 1.22 or later)
- Foundry (latest version)
-
Clone the repository:
git clone https://github.com/danitome24/bc-lens-holiday-hackathon.git
-
Navigate to the root directory:
cd bc-lens-holiday-hackathon
-
Install dependencies:
yarn install
To start the development server for the Next.js application, run:
yarn dev
This will start the server at http://localhost:3000
.
To build the frontend for production, run:
yarn build
To start the production server, run:
yarn start
To run linting on the Next.js codebase, execute:
yarn lint
To compile the smart contracts:
yarn foundry:build
To run tests for the smart contracts:
yarn foundry:test
To deploy the smart contracts:
yarn foundry:deploy
Ensure you have the appropriate configuration for deployment in the Foundry package.
To format the Foundry code:
yarn foundry:fmt
Follow these steps to contribute:
-
Create a new branch for your feature or fix:
git checkout -b feature-name
-
Make changes and commit:
git commit -m "Add feature description"
-
Push your branch and open a pull request:
git push origin feature-name
If you encounter any issues:
- Verify that all dependencies are installed correctly.
- Ensure your Node.js and Foundry versions meet the requirements.
- Check the scripts in the
package.json
file for accurate usage.
For further assistance, feel free to ask in the Telegram Hackathon Group.