Skip to content

Commit

Permalink
Rewrite, change to Vue.js
Browse files Browse the repository at this point in the history
  • Loading branch information
monodot committed Oct 25, 2020
1 parent 63e95cd commit 5c05672
Show file tree
Hide file tree
Showing 21 changed files with 13,247 additions and 903 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
dist/

36 changes: 21 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
# k8s-yaml-builder
# k8s-manifest-builder

A simple webapp for building Kubernetes resource definitions using a form. All static HTML and vanilla JavaScript.
A simple webapp for building Kubernetes resource definitions using a form.

You can find this running at: https://tomd.xyz/tools/kubernetes-yaml-builder/
You can find this running at: https://tomd.xyz/tools/kubernetes-manifest-builder/

Or, to serve the static content locally with Python's simple HTTP server:
## Project setup
```
npm install
```

python -m SimpleHTTPServer 8000
### Compiles and hot-reloads for development
```
npm run serve
```

You can now visit the app at `http://localhost:8000`.
### Compiles and minifies for production
```
npm run build
```

## Serve using a container
### Lints and fixes files
```
npm run lint
```

Or, to serve using an Apache HTTP Server container:
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).

docker run --rm --name k8s-yaml-builder -p 8055:80 -v "$PWD":/usr/local/apache2/htdocs/ httpd:2.4

Or if you use _selinux_ you'll need to mount with `:z`:

docker run --rm --name k8s-yaml-builder -p 8055:80 -v "$PWD":/usr/local/apache2/htdocs/:z httpd:2.4
Then you can visit the app in your browser at `http://localhost:8055`
306 changes: 0 additions & 306 deletions app.js

This file was deleted.

5 changes: 5 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}
Loading

0 comments on commit 5c05672

Please sign in to comment.