Readme update
This commit is contained in:
70
README.md
70
README.md
@@ -1,53 +1,49 @@
|
|||||||
# Basic readme for Tuju / Zoracord
|
# Tuju / Zoracord
|
||||||
Peer-to-peer discord alternative for free
|
|
||||||
|
|
||||||
### Run it
|
Desktop chat app with three parts:
|
||||||
1. npm i
|
|
||||||
2. add .env to root containing `SSL=true`
|
|
||||||
3. npm run dev
|
|
||||||
|
|
||||||
## Code scaffolding
|
- `src/` Angular client
|
||||||
|
- `electron/` desktop shell, IPC, and local database
|
||||||
|
- `server/` directory server, join request API, and websocket events
|
||||||
|
|
||||||
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
|
## Install
|
||||||
|
|
||||||
```bash
|
1. Run `npm install`
|
||||||
ng generate component component-name
|
2. Run `cd server && npm install`
|
||||||
```
|
3. Copy `.env.example` to `.env`
|
||||||
|
|
||||||
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
|
## Config
|
||||||
|
|
||||||
```bash
|
Root `.env`:
|
||||||
ng generate --help
|
|
||||||
```
|
|
||||||
|
|
||||||
## Building
|
- `SSL=true` uses HTTPS for Angular, the server, and Electron dev mode
|
||||||
|
- `PORT=3001` changes the server port
|
||||||
|
|
||||||
To build the project run:
|
If `SSL=true`, run `./generate-cert.sh` once.
|
||||||
|
|
||||||
```bash
|
Server files:
|
||||||
ng build
|
|
||||||
```
|
|
||||||
|
|
||||||
This will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed.
|
- `server/data/variables.json` holds `klipyApiKey`
|
||||||
|
|
||||||
## Running unit tests
|
## Main commands
|
||||||
|
|
||||||
To execute unit tests with the [Vitest](https://vitest.dev/) test runner, use the following command:
|
- `npm run dev` starts Angular, the server, and Electron
|
||||||
|
- `npm run electron:dev` starts Angular and Electron
|
||||||
|
- `npm run server:dev` starts only the server
|
||||||
|
- `npm run build` builds the Angular client
|
||||||
|
- `npm run build:electron` builds the Electron code
|
||||||
|
- `npm run build:all` builds client, Electron, and server
|
||||||
|
- `npm run lint` runs ESLint
|
||||||
|
- `npm run lint:fix` formats templates, sorts template props, and fixes lint issues
|
||||||
|
- `npm run test` runs Angular tests
|
||||||
|
|
||||||
```bash
|
## Server project
|
||||||
ng test
|
|
||||||
```
|
|
||||||
|
|
||||||
## Running end-to-end tests
|
The code in `server/` is a small Node and TypeScript service.
|
||||||
|
It handles the public server directory, join requests, websocket updates, and Klipy routes.
|
||||||
|
|
||||||
For end-to-end (e2e) testing, run:
|
Inside `server/`:
|
||||||
|
|
||||||
```bash
|
- `npm run dev` starts the server with reload
|
||||||
ng e2e
|
- `npm run build` compiles to `dist/`
|
||||||
```
|
- `npm run start` runs the compiled server
|
||||||
|
|
||||||
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
|
|
||||||
|
|
||||||
## Additional Resources
|
|
||||||
|
|
||||||
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
"id": "274b8cec-83cf-41b6-981f-f5116c90696e",
|
|
||||||
"name": "Opem",
|
|
||||||
"ownerId": "a01f9b26-b443-49a7-82a1-4d75c9bc9824",
|
|
||||||
"ownerPublicKey": "a01f9b26-b443-49a7-82a1-4d75c9bc9824",
|
|
||||||
"isPrivate": false,
|
|
||||||
"maxUsers": 50,
|
|
||||||
"currentUsers": 0,
|
|
||||||
"tags": [],
|
|
||||||
"createdAt": 1772382716566,
|
|
||||||
"lastSeen": 1772382716566
|
|
||||||
}
|
|
||||||
]
|
|
||||||
Reference in New Issue
Block a user