-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update Local installation * adjustments to layout and links * finalize
- Loading branch information
Showing
8 changed files
with
140 additions
and
132 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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
sidebar_position: 2 | ||
--- | ||
|
||
# Docker | ||
|
||
## Step 1 - Recommended and Required Software |
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 |
---|---|---|
@@ -0,0 +1,118 @@ | ||
--- | ||
sidebar_position: 1 | ||
--- | ||
|
||
# Local | ||
|
||
## Step 1 - Recommended and Required Software | ||
|
||
### Required | ||
|
||
- [Node.js](https://nodejs.org/en/download/) version 18.0 or above: | ||
- When installing Node.js, you are recommended to check all checkboxes related to dependencies. | ||
- [Git](https://git-scm.com/downloads) latest version recommended. | ||
- [MySQL Database](https://dev.mysql.com/downloads/) latest version recommended (URL, and port number, must be accessible from the installation environment). | ||
- [HPCC cluster](https://hpccsystems.com/getting-started/) latest version recommended. | ||
- [Azure Subscription](https://azure.microsoft.com/en-us/free) | ||
- App registration in Azure (Client ID and Tenant ID. For Authentication , Authorization and to Redirect after authentication). Two processes must be completed one for client application and one for server application | ||
- Adding users to an AD group for authentication (User access control) | ||
|
||
### Recommended | ||
|
||
- Familiarity with basic commands associated with Command Prompt, Powershell, Terminal, or integrated terminal of your choice | ||
|
||
- [Visual Studio Code](https://code.visualstudio.com/download) or your preferred IDE with integrated terminal. | ||
|
||
## Step 2 - Clone the Git Repository | ||
|
||
Open a Command Prompt, Powershell, Terminal, or any other integrated terminal and navigate to your desired installation location. | ||
|
||
Run the command below. | ||
|
||
```bash | ||
git clone https://github.com/hpcc-systems/Tombolo.git | ||
``` | ||
|
||
## Step 3 - Configure Environment Variables | ||
|
||
### Server | ||
|
||
<strong>Make a copy .env.sample file</strong> in the root of the project in your preferred text or code editor and set the following variables | ||
|
||
```bash | ||
HOST_HOSTNAME=localhost | ||
PORT=3000 | ||
WEB_URL=http://localhost:3001/ | ||
DB_USERNAME={your db username, typically root} | ||
DB_PASSWORD={your db user password} | ||
DB_PORT={your db port, typically 3306} | ||
DB_NAME=tombolo | ||
DB_HOSTNAME={your db host, typically localhost} | ||
APP_AUTH_METHOD=azure_ad | ||
TENENT_ID={your azure tenant ID} | ||
CLIENT_ID={your azure client ID} | ||
``` | ||
|
||
Save the copied file as '.env', deleting the .sample extension | ||
|
||
### Client | ||
|
||
<strong>Make a copy .env.sample filein the client-reactjs folder</strong> in your preferred text or code editor and set the following variables | ||
|
||
```bash | ||
PORT=3001 | ||
## PROXY URL ------------------------------------ | ||
# Make sure this url is pointing to the backend server URL. This is used by the UI to interact with backend (Eg : http://localhost:3000) | ||
REACT_APP_PROXY_URL=http://localhost:3000 | ||
## APPLICATION VERSION ---------------------------- | ||
# This grabs the application version fron package.json to display on front end | ||
REACT_APP_VERSION=$npm_package_version | ||
## AZURE ------------------------------------------- | ||
# Uncomment and add the values only if the application is using Auth service for authentication. If Auth service is used for authentication leave as it is. | ||
REACT_APP_APP_AUTH_METHOD =azure_ad | ||
REACT_APP_AZURE_CLIENT_ID ={your azure client ID} | ||
REACT_APP_AZURE_TENENT_ID ={your azure tenant ID} | ||
REACT_APP_AZURE_REDIRECT_URI = http://localhost:3001 | ||
REACT_APP_AZURE_API_TOKEN_SCOPE={your api token scope} | ||
``` | ||
|
||
Save the copied file as '.env', deleting the .sample extension | ||
|
||
## Step 4 - Run the application | ||
|
||
### Server | ||
|
||
Run the following commands from the root directory of your installation in your preferred terminal or integrated IDE | ||
|
||
```bash | ||
cd tombolo/server | ||
``` | ||
|
||
```bash | ||
npm run boostrap-server | ||
``` | ||
|
||
The `cd` command changes the directory you're working with. | ||
|
||
The `npm run boostrap-server` command installs dependencies located in the package.json file necessary for running and compiling the code, then creates the database schema and runs necessary migrations and seeder files for the application. After this is finished, it will start the server. | ||
|
||
## Start the front end | ||
|
||
Open a seperate terminal or integrated IDE, and navigate to your installation location | ||
|
||
```bash | ||
cd tombolo/client-reactjs | ||
``` | ||
|
||
```bash | ||
npm run bootstrap-client | ||
``` | ||
|
||
The `cd` command changes the directory you're working with. | ||
|
||
The `npm run bootstrap-client` command installs dependencies located in the package.json file necessary for running and compiling the code. After this is finished, it will start the front end. | ||
|
||
## Step 5 - Open the application | ||
|
||
Depending on your environment, your browser may have been opened to the start page of Tombolo already, after running the | ||
`npm start` command for the client. If not, you can reach your new installation at [http://localhost:3001/](http://localhost:3001/). If you need any further assistance, check out our [user guides](/docs/category/user-guides). |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"label": "Install", | ||
"position": 1, | ||
"link": { | ||
"type": "generated-index", | ||
"description": "Pick your installation type and configure the application." | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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