Skip to content

Indexing and searching for source code Git and local projects

License

Notifications You must be signed in to change notification settings

Zer0S2m/FugitiveDarkness

Repository files navigation

Fugitive Darkness

Search engine from different sources:

  • Indexing git sources and searching.
  • DOCX Documents.

Development

Development - Server

Before starting, create an .env file and edit it:

cp ./.env.example ./.env

Parameter information

Run docker:

make run-docker

Run system:

make run

Run migrations:

make run-migrate

Run full system:

make dev

Development - Client

Go to working directory:

cd ./client

Before starting, create an .env file and edit it:

cp ./.env.example ./.env

Parameter information

Install dependencies:

npm i

Run system:

npm run dev

Env params

Env params (Server)

Env param Value Example
FD_ROOT_PATH_REPO Root folder for storing locally installed repositories /path/FD/repo
FD_ROOT_PATH_DOCX Root folder for storing locally installed docx files /path/FD/docx
FD_ALLOW_ORIGIN Set the list of allowed origins. http://localhost:5173,http://localhost:5174
FD_POSTGRES_PORT Indicates the port where the server is listening localhost
FD_POSTGRES_HOST Is where the server host is located 5432
FD_POSTGRES_PASSWORD Password for connecting to the specified database my_db_password
FD_POSTGRES_USER Database user my_db_user
FD_POSTGRES_DB Database name my_db

Env params (Client)

Env param Value Example
VITE_FD_HOST_API The host for the API module http://localhost:8080

Build

Build client:

cd ./client && npm run build

Build server:

mvn clean package

Run server:

java -jar ./fugitive-darkness-api/target/fugitive-darkness-api-0.0.8-fat.jar