Skip to content

Some client-side JS tools to manipulate binary data and stuff. Use Preact because I wanted to try it. Based on preact-cli

Notifications You must be signed in to change notification settings

maximeborges/tools.maximeborg.es

Repository files navigation

πŸš€ Based on preact-cli. Ready to deploy using [Webpack] and [Preact]

πŸ’₯ Should be live on tools.maximeborg.es πŸ’₯


Run !

1. Clone this repo:

git clone https://github.com/maximeborges/tools.maximeborg.es.git tools.maximeborg.es
cd tools.maximeborg.es

2. Install dependencies:

yarn

or (slower)

npm install

3. Build !:

yarn build

You're done! Now serve the build folder from wherever you want!

Make it your own

1. Edit src/manifest.json: (default)

{
  "name": "Tools @ maximeborg.es",
  "short_name": "Tools",
  "start_url": "/",
  "display": "standalone",
  "orientation": "portrait",
  "background_color": "#fff",
  "theme_color": "#333745",
  "icons": [{
    "src": "/assets/icons/android-chrome-192x192.png",
    "type": "image/png",
    "sizes": "192x192"
  },
  {
    "src": "/assets/icons/android-chrome-512x512.png",
    "type": "image/png",
    "sizes": "512x512"
  }]
}

2. Do whatever the fuck you want:

src
β”œβ”€β”€ assets
β”‚   β”œβ”€β”€ favicon.ico
β”‚   └── icons
β”‚       β”œβ”€β”€ android-chrome-192x192.png
β”‚       β”œβ”€β”€ android-chrome-512x512.png
β”‚       β”œβ”€β”€ apple-touch-icon.png
β”‚       β”œβ”€β”€ favicon-16x16.png
β”‚       β”œβ”€β”€ favicon-32x32.png
β”‚       β”œβ”€β”€ menu.svg
β”‚       └── mstile-150x150.png
β”œβ”€β”€ components
β”‚   β”œβ”€β”€ app.js
β”‚   β”œβ”€β”€ layout
β”‚   β”‚   β”œβ”€β”€ Header
β”‚   β”‚   β”‚   β”œβ”€β”€ index.js
β”‚   β”‚   β”‚   └── style.scss
β”‚   β”‚   └── Sidebar
β”‚   β”‚       β”œβ”€β”€ index.js
β”‚   β”‚       └── style.scss
β”‚   └── routes
β”‚       β”œβ”€β”€ Converter
β”‚       β”‚   β”œβ”€β”€ index.js
β”‚       β”‚   └── style.scss
β”‚       β”œβ”€β”€ Crypto
β”‚       β”‚   β”œβ”€β”€ index.js
β”‚       β”‚   └── style.scss
β”‚       β”œβ”€β”€ Error
β”‚       β”‚   β”œβ”€β”€ index.js
β”‚       β”‚   └── style.scss
β”‚       └── Home
β”‚           β”œβ”€β”€ index.js
β”‚           └── style.scss
β”œβ”€β”€ index.js
β”œβ”€β”€ manifest.json
└── style
    β”œβ”€β”€ helpers.scss
    β”œβ”€β”€ index.scss
    β”œβ”€β”€ mixins.scss
    └── variables.scss

Deploy

After building the app, you can use the deploy.sh script to deploy the build/ directory directly to your server using rsync. The format is ./deploy.sh <dry-run|live> <username@server> <port> <dist_path>.

Example:

./deploy.sh live myuser@tools.maximeborg.es 22 /var/www/tools.maximeborg.es

Serving

Since this application use preact-router, you can access any page with a simple rewrite rule from your reverse-proxy. There is an example using Caddy:

tools.maximeborg.es {
    header / server "AN AMAZING UNICORN"
    tls contact@maximeborg.es
    root /var/www/tools.maximeborg.es
    gzip
    rewrite / {
        to {path} /
    }
}

License

MIT

Tools used

About

Some client-side JS tools to manipulate binary data and stuff. Use Preact because I wanted to try it. Based on preact-cli

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages