This repository is a ready-to-use GitHub Codespace setup fors HTML, CSS, JavaScript, and Java. Everything you need is pre-installed. No local setup required, though you're free to do so.
-
Fork this repository
- Click the Fork button on GitHub.
-
Create a Codespace
- Open your forked repo on GitHub.
- Go to https://github.com/codespaces/new?repo=<YOUR_USERNAME>/codespace-base. (Remove the <>)
- Your setting should be as such:

- 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.