diff --git a/README.md b/README.md index 6540574..ea52d24 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,22 @@ # naive-keypad -## Build the browser application +An interactive demonstration of a keypad with a quickly discoverable code. + +## Deploying + +To deploy it on your web server, you need to copy those files/directories: + +- `index.html` +- `src/` + +## Developing + +You may optionally use a build step to minify the code and have a development server. Ensure you have [Node.js](https://nodejs.org) installed. Then run your favorite package manager (npm, yarn, pnpm, bun, etc.) to install the dependencies and build the application: ```sh npm install -npm run build -``` - -Copy the contents of the `dist` directory to your web server, and there you go! - -## Changing the code - -You may during the build process override the code of the keypad: - -```sh -VITE_KEYPAD_CODE=7894 npm run build +npm run dev # Run the Vite development server +npm run build # Build the application in the dist/ directory ``` diff --git a/index.html b/index.html index 472e05f..2df5b2e 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,7 @@