-
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.
Merge pull request #178 from wittrockscode/nodeREADME
add node-backend README
- Loading branch information
Showing
3 changed files
with
44 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# node-backend | ||
|
||
## Usage | ||
|
||
### With Docker | ||
|
||
1. Make sure Docker is installed on your system. | ||
2. Navigate to the ``/WebMLOpenEO/app/node-backend`` in your terminal. | ||
3. Run the following command to build the Docker image: | ||
```bash | ||
docker build -t node-backend . | ||
4. Run the following command to run the application: | ||
```bash | ||
docker run -p 3000:3000 --name node-backend node-backend | ||
### Without Docker | ||
1. Make sure node.js is installed on your system. | ||
2. Navigate to ``/WebMLOpenEO/app/node-backend`` in your terminal. | ||
3. Run the following command to install all dependencies: | ||
```bash | ||
npm install | ||
3. Run the following command to run the application: | ||
|
||
```bash | ||
npm start | ||
## Testing | ||
1. Make sure node.js is installed on your system. | ||
2. Navigate to ``/WebMLOpenEO/app/node-backend`` in your terminal. | ||
3. Run the following command to install all dependencies: | ||
```bash | ||
npm install | ||
3. Run the following command to test the application: | ||
|
||
```bash | ||
npm test | ||
> Attention! As this app is heavily dependent on the R-backend, 6 out of 14 tests will fail if the R-backend is not accessible. To start it, please refer to its README. |
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
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