1
- <h1 align =" center " >
2
- NEAR Social SDK
3
- </h1 >
1
+ <!-- markdownlint-disable MD014 -->
2
+ <!-- markdownlint-disable MD033 -->
3
+ <!-- markdownlint-disable MD041 -->
4
+ <!-- markdownlint-disable MD029 -->
4
5
5
- <p align =" center " >
6
- <a href =" https://github.com/NEARBuilders/near-social-js/releases/latest " >
7
- <img alt="GitHub Release" src="https://img.shields.io/github/v/release/NEARBuilders/near-social-js?&logo=github">
8
- </a >
9
- <a href =" https://github.com/NEARBuilders/near-social-js/releases/latest " >
10
- <img alt="GitHub Release Date - Published At" src="https://img.shields.io/github/release-date/NEARBuilders/near-social-js?logo=github">
11
- </a >
12
- </p >
13
-
14
- <p align =" center " >
15
- <a href =" https://github.com/NEARBuilders/near-social-js/releases " >
16
- <img alt="GitHub Pre-release" src="https://img.shields.io/github/v/release/NEARBuilders/near-social-js?include_prereleases&label=pre-release&logo=github">
17
- </a >
18
- <a href =" https://github.com/NEARBuilders/near-social-js/releases " >
19
- <img alt="GitHub Pre-release Date - Published At" src="https://img.shields.io/github/release-date-pre/NEARBuilders/near-social-js?label=pre-release%20date&logo=github">
20
- </a >
21
- </p >
22
-
23
- <p align =" center " >
24
- <a href =" https://github.com/NEARBuilders/near-social-js/blob/main/LICENSE " >
25
- <img alt="GitHub License" src="https://img.shields.io/github/license/NEARBuilders/near-social-js">
26
- </a >
27
- </p >
6
+ <div align =" center " >
28
7
8
+ <h1 style =" font-size : 2.5rem ; font-weight : bold ;" >near-social-js</h1 >
29
9
<p align =" center " >
30
10
<a href =" https://npmjs.com/package/@builddao/near-social-js " target =" _blank " >
31
11
<img src="https://img.shields.io/npm/v/%40builddao%2Fnear-social-js?logo=npm" alt="npm" />
35
15
</a >
36
16
</p >
37
17
38
- <p align =" center " >
39
- A JavaScript SDK for interacting with the social contract (social.near) with helper functions for typical social features.
40
- </p >
41
-
42
- ### Table of contents
43
-
44
- * [ 1. Overview] ( #-1-overview )
45
- * [ 2. Documentation] ( #-2-documentation )
46
- * [ 3. Development] ( #-3-development )
47
- * [ 3.1. Requirements] ( #31-requirements )
48
- * [ 3.2. Setup] ( #32-setup )
49
- * [ 3.3. Build] ( #33-build )
50
- * [ 4. Appendix] ( #-4-appendix )
51
- * [ 4.1. Useful Commands] ( #41-useful-commands )
52
- * [ 4.2. Social Contract] ( #42-social-contract )
53
- * [ 5. How To Contribute] ( #-5-how-to-contribute )
54
- * [ 6. License] ( #-6-license )
18
+ <p >
19
+ <strong>Typescript SDK for interacting with the social contract (social.near)</strong>
20
+ </p >
55
21
56
- ## 🔭 1. Overview
22
+ </ div >
57
23
58
- TBC...
24
+ <details >
25
+ <summary >Table of Contents</summary >
59
26
60
- <sup >[ Back to top ^] [ table-of-contents ] </sup >
27
+ - [ Getting Started] ( #getting-started )
28
+ - [ Installing dependencies] ( #installing-dependencies )
29
+ - [ Running the app] ( #running-the-app )
30
+ - [ Building for production] ( #building-for-production )
31
+ - [ Running tests] ( #running-tests )
32
+ - [ Contributing] ( #contributing )
61
33
62
- ## 📚 2. Documentation
34
+ </ details >
63
35
64
- For full documentation, please see [ here ] [ documentation ] .
36
+ ## Getting Started
65
37
66
- < sup > [ Back to top ^ ] [ table-of-contents ] </ sup >
38
+ ### Installing dependencies
67
39
68
- ## 🛠 3. Development
40
+ ``` bash
41
+ yarn install
42
+ ```
69
43
70
- ### 3.1. Requirements
44
+ ### Running the app
71
45
72
- * Install [ Node v18.20.2+] [ node ]
73
- * Install [ Yarn v1.22.5+] [ yarn ]
46
+ First, run the development server:
74
47
75
- <sup >[ Back to top ^] [ table-of-contents ] </sup >
48
+ ``` bash
49
+ yarn run dev
50
+ ```
76
51
77
- ### 3.2. Setup
52
+ ### Building for production
78
53
79
- 1 . Install the dependencies:
80
54
``` bash
81
- $ yarn install
55
+ yarn run build
82
56
```
83
57
84
- < sup > [ Back to top ^ ] [ table-of-contents ] </ sup >
58
+ ### Running tests
85
59
86
- ### 3.3. Build
87
-
88
- * To build simply run:
89
60
``` bash
90
- $ yarn build
61
+ yarn run test
91
62
```
92
63
93
- The above command will compile the Typescript source code into a ` dist/ ` directory .
64
+ See the full [ testing guide ] ( ./playwright-tests/README.md ) .
94
65
95
- < sup > [ Back to top ^ ] [ table-of-contents ] </ sup >
66
+ ## Appendix
96
67
97
- ## 📑 4. Appendix
68
+ ### Social Contract
69
+
70
+ | Network | Account ID | Link |
71
+ | ---------| -----------------------| ------------------------------------------------------------------------------------------------------------------------|
72
+ | Mainnet | ` social.near ` | [ https://nearblocks.io/address/social.near ] ( https://nearblocks.io/address/social.near ) |
73
+ | Testnet | ` v1.social08.testnet ` | [ https://testnet.nearblocks.io/address/v1.social08.testnet ] ( https://testnet.nearblocks.io/address/v1.social08.testnet ) |
98
74
99
- ### 4.1. Useful Commands
75
+
76
+ ### Useful Commands
100
77
101
78
| Command | Description |
102
79
| -------------------| ------------------------------------------------------------------------------------|
@@ -107,36 +84,30 @@ The above command will compile the Typescript source code into a `dist/` directo
107
84
| ` yarn lint ` | Runs the linter on ` .js ` and ` .ts ` files. |
108
85
| ` yarn node:start ` | Starts up a NEAR development node in a background process. |
109
86
| ` yarn node:start ` | Stops the NEAR development node that was started in ` yarn node:start ` . |
110
- | ` yarn prettier ` | Runs the prettier on ` .js ` and ` .ts ` files. |
87
+ | ` yarn fmt ` | Runs prettier on ` .js ` and ` .ts ` files. |
111
88
| ` yarn test ` | Starts a NEAR development node and runs the tests. |
112
89
113
- <sup >[ Back to top ^] [ table-of-contents ] </sup >
114
-
115
- ### 4.2. Social Contract
116
-
117
- | Network | Account ID | Link |
118
- | ---------| -----------------------| ------------------------------------------------------------------------------------------------------------------------|
119
- | Mainnet | ` social.near ` | [ https://nearblocks.io/address/social.near ] ( https://nearblocks.io/address/social.near ) |
120
- | Testnet | ` v1.social08.testnet ` | [ https://testnet.nearblocks.io/address/v1.social08.testnet ] ( https://testnet.nearblocks.io/address/v1.social08.testnet ) |
121
-
122
- <sup >[ Back to top ^] [ table-of-contents ] </sup >
123
-
124
- ## 👏 5. How To Contribute
125
-
126
- Please read the [ ** Contributing Guide** ] [ contribute ] to learn about the development process.
127
-
128
- <sup >[ Back to top ^] [ table-of-contents ] </sup >
129
-
130
- ## 📄 6. License
131
-
132
- Please refer to the [ LICENSE] [ license ] file.
133
-
134
- <sup >[ Back to top ^] [ table-of-contents ] </sup >
135
-
136
90
<!-- Links -->
137
91
[ contribute ] : ./CONTRIBUTING.md
138
92
[ documentation ] : https://nearbuilders.github.io/near-social-js
139
93
[ license ] : ./LICENSE
140
94
[ node ] : https://nodejs.org/en/
141
95
[ table-of-contents ] : #table-of-contents
142
96
[ yarn ] : https://yarnpkg.com/
97
+
98
+
99
+ ## Contributing
100
+
101
+ Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are ** greatly appreciated** .
102
+
103
+ If you're interested in contributing to this project, please read the [ contribution guide] ( ./CONTRIBUTING ) .
104
+
105
+ <div align =" right " >
106
+ <a href =" https://nearbuilders.org " target =" _blank " >
107
+ <img
108
+ src="https://builders.mypinata.cloud/ipfs/QmWt1Nm47rypXFEamgeuadkvZendaUvAkcgJ3vtYf1rBFj "
109
+ alt="Near Builders"
110
+ height="40"
111
+ />
112
+ </a >
113
+ </div >
0 commit comments