Before you can run this project, you have to make sure you also have the learnpack CLI running, for example:
- Download learnpack cli:
npm i learnpack -g
- Download a package using
learnpack install
- Start the learnpack server by running
learnpack start
on any exercise. - Usually the learnpack server runs on 3000, so probably you can test the learnpack server by typing http://localhost:3000/config
- Now that you have learnpack running on port 3000 you can start start the coding ide development server by running
npm install
and thennpm run start
on the root of this repository. - Once the development server for this project is running you can test it by typing the following URL on the browser:
http://localhost:8080/?host=http://localhost:3000
Note: make sure there is not /
at the end of the URL.
- Build the bundle:
npm run build
- Compress the bundle into a tar.gz:
npm run compress
Note: This tar.gz will be downloaded by the learnpack editor when running for the first time.
- OPTIONAL: only if you want to publish the version to everyone immediatly: Modify the version number in the package.json, increase it.
{
...
"version": "1.0.53",
...
}
P.D: if you don't update the package.json you can still try this editor version using the -v
flag on the learnpack-cli like this: $ learnpack start -v 1.0.54
- Commit to a tag with the same name of the version and push that tag into github.
git commit -m 'your message'
git tag 1.0.53
git push origin 1.0.53