Skip to content

Commit

Permalink
add nodejs to nix shell
Browse files Browse the repository at this point in the history
  • Loading branch information
olgaklimenko committed Jul 19, 2021
1 parent 1af1315 commit 7d6e2c7
Show file tree
Hide file tree
Showing 4 changed files with 1,392 additions and 1,385 deletions.
18 changes: 10 additions & 8 deletions MetaLamp/lending-pool/client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,35 @@ The client application has a minimalistic interface to the PAB [server](/MetaLam

## Running the project

1. Install npm packages.
1. Enter the nix shell (from `lending-pool` directory):

```
npm install
nix-shell
```

2. Generate necessary PureScript code from Haskell source. This step runs an executable(`generate-purs`) from `lending-pool` directory, which requires a certain environment. The setup steps are described in `lending-pool/README`. Provided that you are able to build the backend, you can use the same approach to run purescript generation from `client` folder, i.e.
Cd to `./client` folder.


Enter the nix shell (from `lending-pool` directory):
2. Install npm packages.

```
nix-shell
npm install
```

cd to `lending-pool/client` folder and execute
3. Generate necessary PureScript code from Haskell source. This step runs an executable(`generate-purs`) from `lending-pool` directory, which requires a certain environment. The setup steps are described in `lending-pool/README`. Provided that you are able to build the backend, you can use the same approach to run purescript generation from `client` folder, i.e.


```
npm run generate-purs
```

3. Start the client:
4. Start the client:

```
npm start
```

4. Open browser to interact with the app at https://localhost:8009/.
5. Open browser to interact with the app at https://localhost:8009/.
CORS protection needs to be disabled. You can use this script to launch chromium (note that first you need to close chromium completely, otherwise security won't be disabled):

```
Expand Down
Loading

0 comments on commit 7d6e2c7

Please sign in to comment.