forked from Significant-Gravitas/AutoGPT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Significant-Gravitas:master' into master
- Loading branch information
Showing
85 changed files
with
3,686 additions
and
631 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: AutoGPT Builder Infra | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
paths: | ||
- '.github/workflows/autogpt-infra-ci.yml' | ||
- 'rnd/infra/**' | ||
pull_request: | ||
paths: | ||
- '.github/workflows/autogpt-infra-ci.yml' | ||
- 'rnd/infra/**' | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: rnd/infra | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: TFLint | ||
uses: pauloconnor/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tflint_path: terraform/ | ||
tflint_recurse: true | ||
tflint_changed_only: false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"python.analysis.typeCheckingMode": "basic", | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Advanced Setup | ||
|
||
The advanced steps below are intended for people with sysadmin experience. If you are not comfortable with these steps, please refer to the [basic setup guide](setup.md). | ||
|
||
## Introduction | ||
|
||
For the advanced setup, first follow the [basic setup guide](setup.md) to get the server up and running. Once you have the server running, you can follow the steps below to configure the server for your specific needs. | ||
|
||
## Configuration | ||
|
||
### Setting config via environment variables | ||
|
||
The server uses environment variables to store configs. You can set these environment variables in a `.env` file in the root of the project. The `.env` file should look like this: | ||
|
||
```bash | ||
# .env | ||
KEY1=value1 | ||
KEY2=value2 | ||
``` | ||
|
||
The server will automatically load the `.env` file when it starts. You can also set the environment variables directly in your shell. Refer to your operating system's documentation on how to set environment variables in the current session. | ||
|
||
The valid options are listed in `.env.example` in the root of the builder and server directories. You can copy the `.env.example` file to `.env` and modify the values as needed. | ||
|
||
```bash | ||
# Copy the .env.example file to .env | ||
cp .env.example .env | ||
``` | ||
|
||
### Secrets directory | ||
|
||
The secret directory is located at `./secrets`. You can store any secrets you need in this directory. The server will automatically load the secrets when it starts. | ||
|
||
An example for a secret called `my_secret` would look like this: | ||
|
||
```bash | ||
# ./secrets/my_secret | ||
my_secret_value | ||
``` | ||
|
||
This is useful when running on docker so you can copy the secrets into the container without exposing them in the Dockerfile. |
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,102 @@ | ||
# Setting up the server | ||
|
||
- [Introduction](#introduction) | ||
- [Prerequisites](#prerequisites) | ||
|
||
## Introduction | ||
|
||
This guide will help you setup the server and builder for the project. | ||
|
||
<!-- The video is listed in the root Readme.md of the repo --> | ||
|
||
We also offer this in video format. You can check it out [here](https://github.com/Significant-Gravitas/AutoGPT#how-to-get-started) | ||
|
||
!!! warning | ||
**DO NOT FOLLOW ANY OUTSIDE TUTORIALS AS THEY WILL LIKELY BE OUT OF DATE** | ||
|
||
## Prerequisites | ||
|
||
To setup the server, you need to have the following installed: | ||
|
||
- [Node.js](https://nodejs.org/en/) | ||
- [Python 3.10](https://www.python.org/downloads/) | ||
|
||
### Checking if you have Node.js and Python installed | ||
|
||
You can check if you have Node.js installed by running the following command: | ||
|
||
```bash | ||
node -v | ||
``` | ||
|
||
You can check if you have Python installed by running the following command: | ||
|
||
```bash | ||
python --version | ||
``` | ||
|
||
Once you have node and python installed, you can proceed to the next step. | ||
|
||
### Installing the package managers | ||
|
||
In order to install the dependencies, you need to have the appropriate package managers installed. | ||
|
||
- Installing Yarn | ||
|
||
Yarn is a package manager for Node.js. You can install it by running the following command: | ||
|
||
```bash | ||
npm install -g yarn | ||
``` | ||
|
||
- Installing Poetry | ||
|
||
Poetry is a package manager for Python. You can install it by running the following command: | ||
|
||
```bash | ||
pip install poetry | ||
``` | ||
|
||
### Installing the dependencies | ||
|
||
Once you have installed Yarn and Poetry, you can run the following command to install the dependencies: | ||
|
||
```bash | ||
cd rnd/autogpt_server | ||
poetry install | ||
``` | ||
|
||
**In another terminal**, run the following command to install the dependencies for the frontend: | ||
|
||
```bash | ||
cd rnd/autogpt_builder | ||
yarn install | ||
``` | ||
|
||
Once you have installed the dependencies, you can proceed to the next step. | ||
|
||
### Setting up the database | ||
|
||
In order to setup the database, you need to run the following command, in the same terminal you ran the `poetry install` command: | ||
|
||
```bash | ||
poetry run prisma migrate deploy | ||
``` | ||
|
||
### Running the server | ||
|
||
To run the server, you can run the following command in the same terminal you ran the `poetry install` command: | ||
|
||
```bash | ||
poetry run app | ||
``` | ||
|
||
In the other terminal, you can run the following command to start the frontend: | ||
|
||
```bash | ||
yarn dev | ||
``` | ||
|
||
### Checking if the server is running | ||
|
||
You can check if the server is running by visiting [http://localhost:3000](http://localhost:3000) in your browser. |
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,3 @@ | ||
{ | ||
"python.analysis.typeCheckingMode": "basic", | ||
} |
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
Oops, something went wrong.