Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pravintargaryen/access
This project demonstrates a decentralized access control system using Ethereum smart contracts. It uses Truffle for development and testing, and OpenZeppelin for reusable contract components.
https://github.com/pravintargaryen/access
Last synced: 5 days ago
JSON representation
This project demonstrates a decentralized access control system using Ethereum smart contracts. It uses Truffle for development and testing, and OpenZeppelin for reusable contract components.
- Host: GitHub
- URL: https://github.com/pravintargaryen/access
- Owner: pravintargaryen
- Created: 2024-09-17T04:04:36.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-17T04:09:14.000Z (about 2 months ago)
- Last Synced: 2024-09-17T07:16:34.141Z (about 2 months ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Access Control Smart Contract
This project demonstrates a decentralized access control system using Ethereum smart contracts. It uses Truffle for development and testing, and OpenZeppelin for reusable contract components.
## Prerequisites
Before you begin, ensure you have met the following requirements:
- Node.js (v16 or later)
- npm (v7 or later)
- Ganache CLI (for local blockchain testing)
- Truffle (for contract deployment)## Getting Started
### 1. Clone the Repository
```bash
git clone https://github.com/pravintargaryen/access.git
cd access-control-smart-contract
```### 2. Install Dependencies
```bash
npm install
```### 3. Start Ganache CLI
```bash
ganache-cli```
### 4. Compile Contracts
```bash
truffle compile```
### 5. Run Migrations
```bash
truffle migrate --network development```
### 6. Test
```bash
truffle test```
### Directory Structure
- contracts/ - Contains Solidity smart contract files.
- migrations/ - Contains Truffle migration scripts for deploying contracts.
- test/ - Contains test scripts for your contracts.
- truffle-config.js - Configuration file for Truffle.