Skip to content

Commit

Permalink
Webapp Release
Browse files Browse the repository at this point in the history
  • Loading branch information
0xGingi committed Nov 14, 2024
1 parent c47d0c0 commit 064bf13
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 16 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
server/
node_modules/
.git/
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Rusty Notes
# Trusty Notes

A secure, (WIP) cross-platform note-taking application. Features end-to-end encryption for cloud sync and a modern React frontend.

https://notes.toolworks.dev

![image](https://github.com/user-attachments/assets/cc6c2dca-e71f-42d9-ae78-4a5abfae5d3e)


Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tauri + React + Typescript</title>
<title>Trusty Notes</title>
</head>

<body>
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "rusty-notes-web",
"name": "trusty-notes-web",
"private": true,
"version": "0.1.1",
"version": "0.1.3",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
3 changes: 3 additions & 0 deletions server/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
db/
node_modules/
.git/
12 changes: 6 additions & 6 deletions server/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@ services:
- "3222:3222"
environment:
- NODE_ENV=production
- MONGODB_URI=mongodb://mongodb:27018/notes-sync
- MONGODB_URI=mongodb://mongodbf:27018/notes-sync
- PORT=3222
- ALLOWED_ORIGINS=http://localhost:3222
depends_on:
- mongodb
- mongodbf
restart: unless-stopped
networks:
- notes-network

mongodb:
mongodbf:
image: mongo:latest
user: root
ports:
- "27018:27017"
- "27018:27018"
volumes:
- ./db:/data/db
networks:
- notes-network
command: mongod --bind_ip_all
command: mongod --port 27018 --bind_ip_all
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
interval: 10s
Expand All @@ -36,7 +36,7 @@ services:
entrypoint: >
bash -c "chown -R 1001:1001 /data/db &&
chmod -R 775 /data/db &&
mongod --bind_ip_all"
mongod --port 27018 --bind_ip_all"
networks:
notes-network:
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useAutoSync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function useAutoSync(auto_sync: boolean, sync_interval: number) {
body: JSON.stringify({
public_key: await cryptoService.getPublicKeyBase64(),
notes: encryptedNotes,
client_version: '0.1.1'
client_version: '0.1.3'
}),
});

Expand Down
2 changes: 1 addition & 1 deletion src/services/apiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
body: JSON.stringify({
public_key: publicKey,
notes: encryptedNotes,
client_version: '0.1.1'
client_version: '0.1.3'
}),
});

Expand Down

0 comments on commit 064bf13

Please sign in to comment.