-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: switch to Bun, adjust upload buttons, update docs
- Loading branch information
Showing
18 changed files
with
282 additions
and
16,095 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
/.idea | ||
/.run | ||
.idea | ||
.run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,162 @@ docker compose up -d \ | |
mailhog | ||
``` | ||
|
||
### Run Infrastructure Services From Binaries on macOS | ||
|
||
#### Install Languages and Runtimes | ||
|
||
Install Bun for your platform: | ||
|
||
https://bun.sh | ||
|
||
Install [NVM](https://github.com/nvm-sh/nvm?tab=readme-ov-file#installing-and-updating). | ||
|
||
Install Node.js v20.x with NVM and set it as default: | ||
|
||
```shell | ||
nvm install lts/iron | ||
``` | ||
|
||
```shell | ||
nvm alias default lts/iron | ||
``` | ||
|
||
Install Go for your platform: | ||
|
||
https://go.dev | ||
|
||
Install .NET for your platform: | ||
|
||
http://dot.net | ||
|
||
Install latest JDK with [SDKMAN!](https://sdkman.io): | ||
|
||
```shell | ||
sdk install java | ||
``` | ||
|
||
Install latest Gradle with [SDKMAN!](https://sdkman.io): | ||
|
||
```shell | ||
sdk install gradle | ||
``` | ||
|
||
Install [PDM](https://pdm-project.org/en/latest). | ||
|
||
Install Python 3.12 with PDM: | ||
|
||
```shell | ||
pdm py install [email protected] | ||
``` | ||
|
||
#### CockroachDB | ||
|
||
Download the [binary archive](https://www.cockroachlabs.com/docs/releases/?filters=mac) and extract the archive. | ||
|
||
Start CockroachDB: | ||
|
||
```shell | ||
./cockroach start-single-node --insecure --http-addr=0.0.0.0:18080 | ||
``` | ||
|
||
Using DBeaver or any PostgreSQL GUI, connect with `root` and no password, then create a user and database: | ||
|
||
```sql | ||
CREATE DATABASE voltaserve; | ||
CREATE USER voltaserve; | ||
GRANT ALL PRIVILEGES ON DATABASE voltaserve TO voltaserve; | ||
``` | ||
|
||
Run the [postgres/schema.sql]() in the newly created database. | ||
|
||
#### Redis | ||
|
||
Download the [source archive](https://redis.io/docs/latest/operate/oss_and_stack/install/install-redis/install-redis-from-source/) and follow the guide to build from the source. | ||
|
||
Start Redis: | ||
|
||
```shell | ||
./src/redis-server | ||
``` | ||
|
||
#### MinIO | ||
|
||
Download the [binary](https://min.io/docs/minio/macos/index.html) and move it into its own folder like: `minio`. | ||
|
||
Assign execute permission to the binary: | ||
|
||
```shell | ||
chmod +x ./minio | ||
``` | ||
|
||
Start MinIO: | ||
|
||
```shell | ||
MINIO_ROOT_USER=voltaserve MINIO_ROOT_PASSWORD=voltaserve ./minio server ./data --console-address ":9001" | ||
``` | ||
|
||
#### Meilisearch | ||
|
||
Download the [binary](https://github.com/meilisearch/meilisearch/releases/tag/v1.8.3) and move it into its own folder like: `meilisearch`. | ||
|
||
This [guide](https://www.meilisearch.com/docs/learn/getting_started/installation) might be useful. | ||
|
||
Assign execute permission to the binary: | ||
|
||
```shell | ||
chmod +x ./meilisearch | ||
``` | ||
|
||
_Note: the binary will have a suffix matching the architecture of your computer._ | ||
|
||
#### Mailhog | ||
|
||
Install: | ||
|
||
```shell | ||
go install github.com/mailhog/MailHog@latest | ||
``` | ||
|
||
Start Mailhog: | ||
|
||
```shell | ||
MailHog | ||
``` | ||
|
||
### Install Command Line Tools | ||
|
||
```shell | ||
brew install --cask libreoffice | ||
``` | ||
|
||
```shell | ||
npm i -g gltf-pipeline | ||
``` | ||
|
||
```shell | ||
npm i -g @shopify/screenshot-glb | ||
``` | ||
|
||
```shell | ||
brew install ocrmypdf | ||
``` | ||
|
||
```shell | ||
brew install exiftool | ||
``` | ||
|
||
```shell | ||
brew install poppler | ||
``` | ||
|
||
```shell | ||
brew install imagemagick | ||
``` | ||
|
||
```shell | ||
brew install ffmpeg | ||
``` | ||
|
||
### Run Microservices | ||
|
||
Start each microservice separately in a new terminal as described here: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.