You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will produce a symlink called "result" in your local directory. The program
21
+
can be run as follows:
22
+
23
+
```sh
24
+
./result/bin/simple-ts-clock
25
+
```
24
26
25
-
These steps seem to require python2, which does not ship with most linux distributions and is sunset. Therefore, it is recommended to run this app through docker instead (though of course, vulnerability will still exist - they will just be constrained to the container).
27
+
## Usage
26
28
1. Clone the repository.
27
29
2. Navigate to the repository directory.
28
30
3. Create a `.env` file based on `.env.example`.
29
31
4. Run `npm install` to install dependencies.
30
32
31
-
## How to use
33
+
###How to use
32
34
33
35
1. Run `npm run start` to start the npm server or `npm run watch` to watch for changes.
34
36
2. Navigate the browser to `locahost:8080` or the port specified in the `.env` config.
35
37
36
-
## Offline Mode
38
+
###Offline Mode
37
39
38
40
Offline mode will disable api requests to the server leaving only the clock running. It can be activated by going to `/offline` path.
39
41
40
-
## Demo Mode
42
+
###Demo Mode
41
43
Demo mode works like offline mode but displays demo information instead of real data from apis. It can be activated by going to `/demo` path.
42
44
43
-
## Configuration
45
+
###Configuration
44
46
To override the default config, you can use the URL GET parameters or by pressing `c` to open the config options.
This project follows a standard NixOS deployment process. Utilize the [`nixos/configuration.nix`](./nixos/configuration.nix) file to deploy a standard NixOS installation on a given machine. This sets up [cage](https://github.com/Hjdskes/cage) which is a Wayland kiosk application. The configuration is setup to launch Google Chrome and visit a local dockerized instance of the project.
Make sure to change `system.autoUpgrade` to point to your repo, or disable it.
105
72
106
-
## Step 2: Setup environment secrets
107
-
108
-
Make a copy of the example `.env` file and populate the variables with the ones used for your setup.
109
-
110
-
```bash
111
-
cp .env.example .env
112
-
nvim .env
113
-
```
114
-
115
-
## Step 3: Run Docker-compose
116
-
117
-
Run the application using docker-compose.
118
-
119
-
```bash
120
-
docker-compose up -d
121
-
```
122
73
123
74
# Authors
124
75
@@ -127,3 +78,6 @@ This project was originally a rewrite of [sudoclock](https://github.com/acm-uic/
127
78
The project has since been rewritten mostly in the [simple-js-clock](https://github.com/bmiddha/simple-js-clock) repo by [bmiddha](https://github.com/bmiddha) and other contributors.
128
79
129
80
In January 2023, the simple-js-clock repo was forked to continue development here.
81
+
82
+
In February 2025, @SohamG and @clee231 updated the app to Node 20 and added the
0 commit comments