1.3 KiB
1.3 KiB
Server
The server by default
- runs on port 5146
- Uses Swagger UI in development mode (
/swagger/index.html) - Ignores API keys when not in development mode
Installing the dependencies
Ubuntu 24.04
sudo apt update && sudo apt install dotnet-sdk-8.0 -y
Windows
Download the .NET SDK or follow these steps to use WSL:
- Install Ubuntu in WSL (
wsl --installandwsl --install -d Ubuntu) - Enter your WSL environment
wsl.exeand configure it - Update via
sudo apt update && sudo apt upgrade -y && sudo snap refresh - Continue here: Ubuntu 24.04
MySQL database setup
- Install the MySQL server:
- Linux/WSL:
sudo apt install mysql-server - Windows: MySQL Community Server
- connect to it:
sudo mysql -u root(Or from outside of WSL:mysql -u root) - Create the database
CREATE DATABASE embeddingsearch; use embeddingsearch; - Create the user
CREATE USER 'embeddingsearch'@'%' identified by "somepassword!"; GRANT ALL ON embeddingsearch.* TO embeddingsearch; FLUSH PRIVILEGES; - Create the tables using the CLI tool:
dotnet buildandsrc/cli/bin/Debug/net8.0/cli -h $mysql_ip -p $mysql_port -U $mysql_username -P $mysql_password --database --setup