Skip to content

Commit

Permalink
feat(docs): documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman-zishan committed Dec 5, 2023
1 parent 58d46cb commit 770acdb
Showing 1 changed file with 39 additions and 5 deletions.
44 changes: 39 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,46 @@
# README
# sFriend.tech

This project is a clone of friend.tech build using stacks.

This repository contains a starter package for the Hiro Hacks series.

## Getting Started

To get the application running, follow these steps:

1. Clone the repository: `git clone https://github.com/hirosystems/hiro-hacks-template.git`
2. Navigate into the directory: `cd hiro-hacks-template`
1. Clone the repository: `git clone https://github.com/Aman-zishan/friend.tech.git`
2. Navigate into the directory: `cd friend.tech`
3. Install the dependencies: `yarn install`
4. Start the development server: `yarn dev`
4. Start the frontend development server: `yarn dev`
5. Open a new terminal session
6. Install the dependencies for the chat server: `cd server && yarn install`
7. Start the chat server: `yarn start`
8. Open the application in your browser: `http://localhost:5173/`


## Setup

Before getting into testing the application you need to spin up the devnet. This applications uses devnet to interact with the smart contract. To spin up the devnet, follow these steps:

1. `clarinet integrate`
2. Once the devnet is up and running, import wallets to different browser accounts
3. For testing we'll be using chrome user 1 as subject 1 and chrome user 2 as holder of this subject
4. Import deployer wallet, go to `settings/Devnet.toml` and copy the mnemonic of the deployer account
5. Similarly import the mnemonic of any other wallet to be the holder


## Testing

To run the contract tests, simply run `yarn test` from the root directory. This will run the tests in the `tests` directory.


## Demo

1. Create a new account in the imported deployer wallet and set the protocol fee destination to this account (only deployer can set the protocol fee destination)

2. Connect the wallet to the application
3. The application will check if you have already bought the first key, if not then it will ask you to buy the first key (first key is free and allows the subject to create a profile)
4. Now you are taken to the profile page, where you can trade keys




0 comments on commit 770acdb

Please sign in to comment.