Set up go-slang before proceeding. This necessary includes running yarn link
in "../go-slang".
# working directory: REPO_ROOT/frontend
# tells yarn to create a sym-link to the yarn package in "go-slang"
yarn link "go-slang"
# Runs build in the go-slang package so that the frontend accesses the latest go-slang build.
( cd ../go-slang ; yarn build )
If the above does not work on your machine, feel free to use any other means to save the dependency.
For example:
{
"name": "frontend",
"version": "0.1.0",
"private": true,
"dependencies": {
//...
"go-slang": "../go-slang", // insert this line
//...
},
//...
}
Note that this requires you to clean cache and reinstall to get changes to your "./go-slang" folder as this is not a sym-link, but an installed dependency.
Once go-slang
is accessible from this directory, we can follow typical ReactJS instructions:
# working directory: REPO_ROOT/frontend
yarn # installs all dependencies
yarn start # runs the webapp locally