Skip to content

Commit 2c3ccea

Browse files
committed
up version
1 parent 7df47a5 commit 2c3ccea

File tree

3 files changed

+62
-84
lines changed

3 files changed

+62
-84
lines changed

README.md

Lines changed: 8 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,13 @@
22

33
# Installation instructions
44

5-
## Prerequisites
5+
Node.JS version 8 or higher and NPM version 5 or higher need to be installed on the system. A Unix like OS especially Linux is recommended.
6+
Install dependencies by running `npm install` in the `frontend` folder of the project directory.
67

7-
Node.JS version 8 or higher and NPM version 5 or higher need to be installed on the system. GNU+Linux is recommended.
8-
Make sure you populated the correct and up-to-date submodules installed. If you don't have the SOSML-frontend repository cloned yet use this to also get the submodules:
9-
```
10-
git clone --recursive https://github.com/SOSML/SOSML-frontend.git
11-
```
12-
If you have the the SOSML-frontend repository but not its submodules (e.g. if you cloned without `--recursive`):
13-
```
14-
git submodule update --init --recursive
15-
```
8+
Further, build a version of `SOSML/SOSML` and place the resulting `interpreter.min.js` as
9+
`interpreter.js` in the `frontend/public` folder. Similarly, build a version of `SOSML/SOSML-webworker`
10+
and put the result as `webworker.js` in the `frontend/public` folder.
11+
(Note that per default, a fairly recent version of both files is provided already.)
1612

17-
## Install/Update all NPM dependencies
18-
To install or(non-exclusive or) update all NPM dependencies and pull all git submodules run:
19-
```
20-
./prepare.sh
21-
```
22-
23-
## Build the interpreter and frontend
24-
25-
Now you should have beautiful typescript code. To make javascript out of this repo and the submodules run:
26-
```
27-
./build.sh
28-
```
29-
30-
## Install docker
31-
32-
Install the latest version of docker on your system and make sure the docker daemon is running.
33-
Run `docker pull derjesko/mosmlfallback` to dowload the docker image.
34-
35-
## Run the server
36-
37-
Switch to the `backend` folder. Run `npm install`.
38-
Ensure that the user running the backend is in the `docker` group.
39-
Run `node ./src/main.js`. In parallel, run `node ./src/worker.js` to start a worker.
13+
If you want a built for deployment version just run `npm run build` and you can then find this version in the build folder.
14+
For developing on this repo just run `npm run start` which launches a version of the website in this repo and automatically updates if it detects changes in any project files.

frontend/package.json

Lines changed: 53 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,56 @@
11
{
2-
"name": "sosml-frontend",
3-
"version": "1.0.0",
4-
"repository": {
5-
"type": "git",
6-
"url": "https://github.com/SOSML/SOSML-frontend.git"
7-
},
8-
"description": "A frontend for the infamous SOSML interpreter",
9-
"license": "GPL-3.0",
10-
"dependencies": {
11-
"@types/jest": "^20.0.8",
12-
"@types/node": "^8.10.58",
13-
"@types/react": "^16.9.11",
14-
"@types/react-bootstrap": "^0.31.2",
15-
"@types/react-dom": "^16.9.4",
16-
"@types/react-router": "^4.0.15",
17-
"@types/react-router-dom": "^4.0.7",
18-
"file-saver": "^1.3.3",
19-
"react": "^15.6.1",
20-
"react-bootstrap": "^0.31.3",
21-
"react-codemirror": "^1.0.0",
22-
"react-dom": "^15.6.1",
23-
"react-router": "^4.2.0",
24-
"react-router-bootstrap": "^0.24.4",
25-
"react-router-dom": "^4.2.2",
26-
"react-scripts": "^3.2.0",
27-
"react-splitter-layout": "^0.2.1"
28-
},
29-
"scripts": {
30-
"start": "npm run version-ts; react-scripts start",
31-
"build": "npm run version-ts; react-scripts build; workbox generateSW workbox-config.js && precompress build",
32-
"test": "react-scripts test --env=jsdom",
33-
"version-ts": "echo \"export const REF_NAME = '${CI_COMMIT_REF_NAME}';\nexport const COMMIT_SHA = '`git rev-parse --short HEAD`';\nexport const PIPELINE_ID = '${CI_PIPELINE_ID}';\nexport const BUILD_DATE = '`date --utc`';\" > ./src/components/Version.tsx"
34-
},
35-
"devDependencies": {
36-
"precompress": "^5.1.0",
37-
"tslint": "^5.0.0",
38-
"typescript": "^3.7.0",
39-
"workbox-cli": "^4.3.1"
40-
},
41-
"browserslist": {
42-
"production": [
43-
">0.2%",
44-
"not dead",
45-
"not op_mini all"
2+
"name": "@sosml/frontend",
3+
"version": "1.2.0",
4+
"repository": {
5+
"type": "git",
6+
"url": "https://github.com/SOSML/SOSML-frontend.git"
7+
},
8+
"description": "A frontend for the infamous SOSML interpreter",
9+
"license": "GPL-3.0",
10+
"files": [
11+
"build"
4612
],
47-
"development": [
48-
"last 1 chrome version",
49-
"last 1 firefox version",
50-
"last 1 safari version"
51-
]
52-
}
13+
"dependencies": {
14+
"file-saver": "^1.3.3",
15+
"react": "^15.6.1",
16+
"react-bootstrap": "^0.31.3",
17+
"react-codemirror": "^1.0.0",
18+
"react-dom": "^15.6.1",
19+
"react-router": "^4.2.0",
20+
"react-router-bootstrap": "^0.24.4",
21+
"react-router-dom": "^4.2.2",
22+
"react-scripts": "^3.2.0",
23+
"react-splitter-layout": "^0.2.1"
24+
},
25+
"scripts": {
26+
"start": "npm run version-ts; react-scripts start",
27+
"build": "npm run version-ts; react-scripts build; workbox generateSW workbox-config.js && precompress build",
28+
"test": "react-scripts test --env=jsdom",
29+
"version-ts": "echo \"export const REF_NAME = '${CI_COMMIT_REF_NAME}';\nexport const COMMIT_SHA = '`git rev-parse --short HEAD`';\nexport const PIPELINE_ID = '${CI_PIPELINE_ID}';\nexport const BUILD_DATE = '`date --utc`';\" > ./src/components/Version.tsx"
30+
},
31+
"devDependencies": {
32+
"@types/jest": "^20.0.8",
33+
"@types/node": "^8.10.58",
34+
"@types/react": "^16.9.11",
35+
"@types/react-bootstrap": "^0.31.2",
36+
"@types/react-dom": "^16.9.4",
37+
"@types/react-router": "^4.0.15",
38+
"@types/react-router-dom": "^4.0.7",
39+
"precompress": "^5.1.0",
40+
"tslint": "^5.0.0",
41+
"typescript": "^3.7.0",
42+
"workbox-cli": "^4.3.1"
43+
},
44+
"browserslist": {
45+
"production": [
46+
">0.2%",
47+
"not dead",
48+
"not op_mini all"
49+
],
50+
"development": [
51+
"last 1 chrome version",
52+
"last 1 firefox version",
53+
"last 1 safari version"
54+
]
55+
}
5356
}

frontend/public/interpreter.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)