Skip to content

Commit a93eb20

Browse files
committed
2 parents 7060caf + 2dbc37d commit a93eb20

File tree

2 files changed

+102
-0
lines changed

2 files changed

+102
-0
lines changed

docs/dev/battlelog/README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# livelogi
2+
3+
## Install
4+
5+
1. Install docker + compose
6+
2. Rename .env_example --> .env and modify as you like.
7+
3. Run docker compose build --no-cache
8+
4. Run docker compose up -d
9+
5. Navigate to localhost:3000
10+
11+
## Frontend development
12+
13+
The frontend is bundled with [Vite](https://vitejs.dev/).
14+
15+
Once the backend is running (on port 3000), you can navigate to `frontend/`,
16+
run `npm i` and `npm run dev` to run the Vite development server that has
17+
hot reload and all that jazz.
18+
19+
## Info
20+
21+
Database is currently preseeded with test data from preseed/preseed.csv
22+
23+
## Migrations
24+
25+
To add new migration, locally run: `./node_modules/.bin/node-pg-migrate create <MIGRATION_NAME>` and modify created file in `/migrations` directory.
26+
Migrations are run (if needed) when docker container starts. `wait-for-it.sh` will ensure that psql container is up and accepting connections before running migrations.
27+
28+
## JWT testing
29+
30+
Remove comments from "jwt-test-network" for local jwt testing, to allow joining containers from 2 different compose runs to same docker network.
31+
32+
## OpenAPI Specification
33+
34+
https://pvarki.github.io/typescript-liveloki-app/
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
2+
## Usage
3+
4+
### Creating a new event
5+
6+
Livelog is platform to aggregate and enrich data brought from different sources.
7+
All data in Livelog is handled in "events". Single event can contain following inputs:
8+
9+
10+
![[PVARKI-livelogi-ohje.jpg]]
11+
12+
- 1. Header
13+
- Header of the event.
14+
- 2. Source
15+
- Where the data is coming from.
16+
- 3. Date / time
17+
- Date and time of the event (this is the time when something happened, not when it was submitted to Livelog).
18+
- 4. HCOE Domains
19+
- Categorization of the event based on Hybrid CoE classification.
20+
- 5. Link
21+
- If the event was something that has permanent link (for example Facebook post/ news article, forum post, etc)
22+
- 6. Admiralty code -> Reliability / Accuracy
23+
- https://en.wikipedia.org/wiki/Admiralty_code
24+
- 7. Keywords
25+
- Tags/keywords to help group and search information.
26+
- Drop down menu will show and search existing keywords when user is inputting a new keyword.
27+
- 8. Location
28+
- Geographic location of the event
29+
- Includes option to input coordinates and/or free text, if coordinates are unknown.
30+
- Location can also be set by using the provided map.
31+
32+
33+
34+
After inputting the event details, you can add another event by pressing the "Add Another Event" (9) or press "Submit Event" (10) to save already ready events.
35+
36+
37+
38+
### Searching existing events
39+
40+
41+
Search (11) allows user to perform search of the database for existing events. It will also use fuzzy search to filter results real time while user is typing.
42+
43+
Alert Keyword (12) will highlight all events matching the user input.
44+
45+
Search and Alert can be used both together to narrow down results and mark important results more clearly.
46+
47+
Toggle Map icon (13) opens the map displaying all existing events that have coordinates set.
48+
49+
Toggle List icon (14) opens the list listing all events or events matching the user input.
50+
51+
52+
### Viewing existing events
53+
54+
55+
![[PVARKI-livelogi-ohje-2.jpg]]
56+
57+
Permalink (15) opens the single event view. This link is also shareable and permanent/unique per event, so it remains unchanged and will always lead back to this event.
58+
59+
Map view (16) opens the Open Street Map view pointing to the coordinates, if coordinates were given when creating the event.
60+
61+
### Single event view
62+
63+
64+
![[PVARKI-livelogi-ohje-3.jpg]]
65+
66+
Displays all details from the selected event.
67+
68+
Upload media (17) allows user to add images for the event.

0 commit comments

Comments
 (0)