An open API service indexing awesome lists of open source software.

https://github.com/viendinhcom/docker-vscode-frontend

A Docker workspace for frontend development using VSCode Server on Alpine Linux containers.
https://github.com/viendinhcom/docker-vscode-frontend

alpine compose container development devops docker frontend honojs linux macos modules nodejs podman production typescript vscode vscode-server vscode-web windows

Last synced: about 23 hours ago
JSON representation

A Docker workspace for frontend development using VSCode Server on Alpine Linux containers.

Awesome Lists containing this project

README

          

# Docker VSCode for Front End Development

A Docker workspace for `frontend` development using `VSCode Server` on `Alpine Linux` containers. It ensures a consistent development process from `development` to `production` and provides a uniform environment for `frontend` developers.

- 🐳 **Just Docker**—no local dependencies
- 🖥️ **VSCode in browser**—run and code, no setup
- 🚀 **Effortless dev-to-prod workflow**—deploy what you build
- ⚡ **Consistent environments**—no more `it works on my machine`

Perfect for fast, reliable, and collaborative frontend development!

You can also include this project as a module in [Docker VSCode for Full Stack Development](https://github.com/VienDinhCom/docker-vscode-fullstack), allowing you to integrate it with the `frontend` and other related services.

## Installation

Before using this project, make sure you have `Docker CLI` version `1.27.0` or higher, with built-in `compose` support.

```
git clone https://github.com/VienDinhCom/docker-vscode-frontend.git
```

The command above clones the project into the `docker-vscode-frontend` folder. You can navigate to it and check out the scenarios below.

## Production

Build the production image and run it.

```
docker compose -f docker/production.yml up --build
```

Open [http://localhost:3000](http://localhost:3000) to view it in your browser.

## Development

Build the development image and run it with the host's `UID` and `GID`.

```
UID=$(id -u) GID=$(id -g) docker compose -f docker/development.yml up --build
```

Open [http://localhost:53000](http://localhost:53000) to develop inside the container with Visual Studio Code directly in your browser.

Install project dependencies.

```
npm install
```

Run the app in the development mode.

```
npm run dev
```

Open [http://localhost:3000/](http://localhost:3000/) to view it in your browser.

## Related Projects

- [Docker VSCode for Back End Development](https://github.com/VienDinhCom/docker-vscode-backend)
- [Docker VSCode for Full Stack Development](https://github.com/VienDinhCom/docker-vscode-fullstack)