Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repo restructure frontend #8118

Merged
merged 3 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ documentation:

Builder:
- changed-files:
- any-glob-to-any-file: autogpt_platform/autogpt_builder/**
- any-glob-to-any-file: autogpt_platform/frontend/**

Server:
- changed-files:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: Platform - AutoGPT Builder CI
name: Platform - AutoGPT Frontend CI

on:
push:
branches: [ master ]
paths:
- '.github/workflows/autogpt-builder-ci.yml'
- 'autogpt_platform/autogpt_builder/**'
- '.github/workflows/platform-frontend-ci.yml'
- 'autogpt_platform/frontend/**'
pull_request:
paths:
- '.github/workflows/autogpt-builder-ci.yml'
- 'autogpt_platform/autogpt_builder/**'
- '.github/workflows/platform-frontend-ci.yml'
- 'autogpt_platform/frontend/**'

defaults:
run:
shell: bash
working-directory: autogpt_platform/autogpt_builder
working-directory: autogpt_platform/frontend

jobs:

Expand Down
2 changes: 1 addition & 1 deletion autogpt_platform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ To run the AutoGPT Platform, follow these steps:
```

This command will start all the necessary backend services defined in the `docker-compose.combined.yml` file in detached mode.
7. Navigate to autogpt_platform/autogpt_builder.
7. Navigate to autogpt_platform/frontend.
8. Run the following command:
```
cp .env.example .env.local
Expand Down
2 changes: 1 addition & 1 deletion autogpt_platform/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ services:
# frontend:
# build:
# context: ../
# dockerfile: autogpt_platform/autogpt_builder/Dockerfile
# dockerfile: autogpt_platform/frontend/Dockerfile
# target: dev
# depends_on:
# postgres:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# Base stage for both dev and prod
FROM node:21-alpine AS base
WORKDIR /app
COPY autogpt_platform/autogpt_builder/package.json autogpt_platform/autogpt_builder/yarn.lock ./
COPY autogpt_platform/frontend/package.json autogpt_platform/frontend/yarn.lock ./
RUN yarn install --frozen-lockfile

# Dev stage
FROM base AS dev
ENV NODE_ENV=development
COPY autogpt_platform/autogpt_builder/ .
COPY autogpt_platform/frontend/ .
EXPOSE 3000
CMD ["yarn", "run", "dev"]

# Build stage for prod
FROM base AS build
COPY autogpt_platform/autogpt_builder/ .
COPY autogpt_platform/frontend/ .
RUN npm run build

# Prod stage
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "autogpt_builder",
"name": "frontend",
"version": "0.1.0",
"private": true,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion docs/content/server/ollama.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Follow these steps to set up and run Ollama and your AutoGPT project:
- Open another terminal
- Navigate to the frontend directory in the AutoGPT project:
```
cd autogpt_platform/autogpt_builder/
cd autogpt_platform/frontend/
```
- Start the frontend development server:
```
Expand Down
4 changes: 2 additions & 2 deletions docs/content/server/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ poetry install
**In another terminal**, run the following command to install the dependencies for the frontend:

```bash
cd autogpt_platform/autogpt_builder
cd autogpt_platform/frontend
yarn install
```

Expand Down Expand Up @@ -120,7 +120,7 @@ docker compose -f docker-compose.combined.yml build
docker compose -f docker-compose.combined.yml up -d
```

In the other terminal from autogpt_builder, you can run the following command to start the frontend:
In the other terminal from frontend, you can run the following command to start the frontend:

```bash
yarn dev
Expand Down
Loading