|
1 | 1 | # Safient Core SDK
|
2 |
| -JavaScript SDK to manage and interact with the safes on Safient protocol. |
3 | 2 |
|
| 3 | +JavaScript SDK to manage and interact with the safes on Safient protocol. |
4 | 4 |
|
5 |
| - |
| 5 | +<!--  --> |
6 | 6 |
|
7 | 7 | Trustless crypto asset safe and inheritance protocol
|
8 | 8 |
|
| 9 | +## Getting started |
9 | 10 |
|
10 |
| - |
11 |
| -## About Safient |
12 |
| -Digital crypto assets are the talk of the town and gaining traction rapidly among all kinds of individuals and organizations. Due to the higher traction, these assets are highly valuable. So, one has to make sure that their assets are safe and sound. |
13 |
| - |
14 |
| -Owning and securing the digital crypto-asset unlike other digital assets can be challenging due to the self-sovereign nature of the ownership. It means that the owner is the only safe keeper of the assets. For many users, this might be an intimidating role as they don't want to completely responsible for preserving the assets against attacks and natural disasters. Every user always desires a trusted recovery method in case of tragedies. But there is no standardized way to easily and securely back up and recover the assets. |
15 |
| - |
16 |
| -Safex promises to securely and conveniently store any critical information that is needed to access and recover the assets in case of any tragic events. Safex also provides a trustless yet safe way to transfer and inherit the assets by close ones whenever such an unfortunate scenario occurs. |
17 |
| - |
18 |
| -Safex uses decentralized storage, smart contracts, and cryptography techniques to build a protocol that helps to store, recover, inherit crypto assets and other confidential information. In essence, you can think of Safex as your trusted guardian even though it is completely trustless. |
19 |
| - |
20 |
| - |
21 |
| -## Technologies used: |
22 |
| -* [Ceramic IDX](https://idx.xyz/) |
23 |
| -* [Textile ThreadDb](https://docs.textile.io/threads/) |
24 |
| - |
| 11 | +```bash |
| 12 | + npm i @safient/core |
| 13 | +``` |
25 | 14 |
|
26 | 15 |
|
27 |
| -## Getting Started |
| 16 | +## Local installation |
28 | 17 |
|
29 | 18 | ```bash
|
30 | 19 | git clone https://github.com/safient/safient-core.git
|
31 | 20 | cd safient-core
|
32 | 21 | npm install
|
| 22 | + npm run build |
33 | 23 | ```
|
34 | 24 |
|
35 | 25 | ## Running Tests
|
36 | 26 |
|
37 | 27 | Create an `.env` file in the `middleware` and `root` folder with `USER_API_KEY`, `USER_API_SECRET` and `DB_FILE_NAME='./thread.config'`
|
38 |
| -##### Terminal 1 |
39 |
| - |
40 |
| -* Need ts compiled dist folder to run tests |
41 |
| -```bash |
42 |
| - npx tsc -w |
43 |
| -``` |
44 | 28 |
|
45 |
| -##### Terminal 2 |
46 | 29 |
|
47 | 30 | ```bash
|
48 | 31 | cd ..
|
49 | 32 | npm run test
|
50 | 33 | ```
|
51 | 34 |
|
| 35 | +## Building docs |
| 36 | + |
| 37 | +Update the docs markdown |
| 38 | + |
| 39 | +``` |
| 40 | +npm run build:docs |
| 41 | +``` |
| 42 | + |
| 43 | +Run the docusaurus website locally |
| 44 | + |
| 45 | +``` |
| 46 | +npm run serve:docs |
| 47 | +``` |
| 48 | + |
| 49 | +## Technologies used: |
| 50 | + |
| 51 | +- [Ceramic IDX](https://idx.xyz/) |
| 52 | +- [Textile ThreadDb](https://docs.textile.io/threads/) |
| 53 | + |
52 | 54 | ## Contributing
|
53 | 55 |
|
54 | 56 | You are welcome to submit issues and enhancement requests and work on any of the existing issues. Follow this simple guide to contribute to the repository.
|
55 | 57 |
|
56 |
| - 1. **Create** or pick an existing issue to work on |
57 |
| - 2. **Fork** the repo on GitHub |
58 |
| - 3. **Clone** the forked project to your own machine |
59 |
| - 4. **Commit** changes to your own branch |
60 |
| - 5. **Push** your work back up to your forked repo |
61 |
| - 6. Submit a **Pull request** from the forked repo to our repo so that we can review your changes |
62 |
| - |
| 58 | +1. **Create** or pick an existing issue to work on |
| 59 | +2. **Fork** the repo on GitHub |
| 60 | +3. **Clone** the forked project to your own machine |
| 61 | +4. **Commit** changes to your own branch |
| 62 | +5. **Push** your work back up to your forked repo |
| 63 | +6. Submit a **Pull request** from the forked repo to our repo so that we can review your changes |
63 | 64 |
|
64 |
| - ## Resources: |
| 65 | +## Resources: |
65 | 66 |
|
66 |
| -* [Website](https://safient.co) |
67 |
| -* [Web App](https://app.safient.co) |
68 |
| -* [Twitter](https://twitter.con/safientio) |
69 |
| -* [Discord](https://discord.safient.io) |
| 67 | +- [Website](https://safient.io) |
| 68 | +- [Web App](https://app.safient.io) |
| 69 | +- [Twitter](https://twitter.con/safientio) |
| 70 | +- [Discord](https://discord.safient.io) |
0 commit comments