Spaces:
Runtime error
Runtime error
File size: 967 Bytes
711e9c6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
---
sidebar_position: 2
---
# Installation
## Prerequisite
1. Install `Node.js` and `NPM` on your machine by following the instructions over [here](https://nodejs.org/en/download).
:::note
Require `Node.js` version `>=16`.
:::
2. Install [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git).
## The sCrypt CLI Tool
The [sCrypt CLI tool](https://github.com/sCrypt-Inc/scrypt-cli) is used to easily create, compile and publish `sCrypt` projects. The CLI provides best practice project scaffolding including dependencies such as sCrypt, a test framework ([Mocha](https://mochajs.org)), code auto-formatting ([Prettier](https://prettier.io)), linting ([ES Lint](https://eslint.org)), & more.
Install it and try it out by creating a demo project:
```sh
npm install -g scrypt-cli
scrypt project demo
```
:::tip
You can also simply fork [the demo contract Repl](https://replit.com/@msinkec/scryptTS-demo) and play with the code in your browser.
:::
|