-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
58d46cb
commit 770acdb
Showing
1 changed file
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
||
|
||
|