This repository is a ready-to-use GitHub Codespace setup for HTML, CSS, JavaScript, and Java. Everything you need is pre-installed.
Go to https://github.com/hstatsep/codespace/codespaces
- Press the green button: Create codespace on Main
- Wait a few minutes while the container builds.
- It will install:
- Node.js & npm
- Java 17
- Git
http-server- VS Code extensions for HTML, CSS, JS, and Java
- Open the terminal
- Check your tools (test commands in bash):
node -v
npm -v
java -version
http-server --version
git --version- Test a simple project
mkdir web-test
echo "<h1>Hello Codespace</h1>" > web-test/index.html
cd web-test
http-server- Click the forwarded port link in Codespaces to see your page in the browser.
- Find all your Codespaces: https://github.com/codespaces
- Save your work often using Git:
git add .
git commit -m "My first changes"
git push- If you did the last one, then: Don't be worried about your terminal breaking.