diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index eace7d5bd2..5ec2fa7ced 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -22,6 +22,7 @@ // Use 'postCreateCommand' to run commands after the container is created. "postCreateCommand": "cp .env.example .env && sed -i '/^ENCRYPTION_KEY=/c\\ENCRYPTION_KEY='$(openssl rand -hex 32) .env && sed -i '/^NEXTAUTH_SECRET=/c\\NEXTAUTH_SECRET='$(openssl rand -hex 32) .env && pnpm install && pnpm db:migrate:dev", + "postAttachCommand": "pnpm dev --filter=web... --filter=demo...", // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. "remoteUser": "node" diff --git a/apps/formbricks-com/app/docs/contributing/setup/github-codespaces/env.webp b/apps/formbricks-com/app/docs/contributing/setup/github-codespaces/env.webp deleted file mode 100644 index f22e6b6722..0000000000 Binary files a/apps/formbricks-com/app/docs/contributing/setup/github-codespaces/env.webp and /dev/null differ diff --git a/apps/formbricks-com/app/docs/contributing/setup/github-codespaces/run.webp b/apps/formbricks-com/app/docs/contributing/setup/github-codespaces/run.webp deleted file mode 100644 index e50adb0771..0000000000 Binary files a/apps/formbricks-com/app/docs/contributing/setup/github-codespaces/run.webp and /dev/null differ diff --git a/apps/formbricks-com/app/docs/contributing/setup/github-codespaces/terminal.webp b/apps/formbricks-com/app/docs/contributing/setup/github-codespaces/terminal.webp deleted file mode 100644 index c57df1bf22..0000000000 Binary files a/apps/formbricks-com/app/docs/contributing/setup/github-codespaces/terminal.webp and /dev/null differ diff --git a/apps/formbricks-com/app/docs/contributing/setup/page.mdx b/apps/formbricks-com/app/docs/contributing/setup/page.mdx index 87a6be3e50..61637af51d 100644 --- a/apps/formbricks-com/app/docs/contributing/setup/page.mdx +++ b/apps/formbricks-com/app/docs/contributing/setup/page.mdx @@ -6,12 +6,9 @@ import GitpodPorts from "./gitpod/ports.webp"; import GitpodPreparing from "./gitpod/preparing.webp"; import GitpodRunning from "./gitpod/running.webp"; -import GithubCodespaceEnvFile from "./github-codespaces/env.webp"; import GithubCodespaceLoading from "./github-codespaces/loading.webp"; import GithubCodespaceNew from "./github-codespaces/new.webp"; import GithubCodespacePorts from "./github-codespaces/ports.webp"; -import GithubCodespaceRun from "./github-codespaces/run.webp"; -import GithubCodespaceTerminal from "./github-codespaces/terminal.webp"; export const metadata = { title: "Formbricks Development Setup: Complete Guide to Local Environment Configuration for Dev", @@ -38,7 +35,7 @@ This will open a fully configured workspace in your browser with all the necessa ### [Github Codespaces](#Github-codespaces) -This will open a Github VSCode Interface on the cloud for you. This setup will have the Formbricks codebase and all the dependencies installed. Click the button below to configure your instance and open the project in Github Codespaces. For a detailed guide, visit the [Github Codespaces Setup Guide](#github-codespaces-guide) section below. +This will open a Github VSCode Interface on the cloud for you. This setup will have the Formbricks codebase, all the dependencies installed & Formbricks running. Click the button below to configure your instance and open the project in Github Codespaces. For a detailed guide, visit the [Github Codespaces Setup Guide](#github-codespaces-guide) section below. [![Open in Github Codespaces](https://img.shields.io/badge/Open%20in-Github%20Codespaces-blue?logo=Github)](https://Github.com/codespaces/new?machine=standardLinux32gb&repo=500289888&ref=main&devcontainer_path=.devcontainer%2Fdevcontainer.json&location=EastUs2) @@ -225,44 +222,7 @@ These URLs and port numbers represent various services and endpoints within your 3. Once the Codespace is loaded, you will be redirected to the VSCode editor. You can start working on your project in this environment. -4. Make the changes you want to, and now, to run the app, we first need to configure the .env file. Copy the .env.example and edit the variables as mentioned in the file itself. - -Github Codespace Env File - -5. Once you have configured the .env, it's now time to run the app and see the changes. Lets open the terminal first - -Github Codespace Open Terminal - -6. Now, run the following command to run the app - - - - -```bash -pnpm dev -``` - - - - -Run on Github Codespace - -7. Monitor the logs in the terminal and once you see the following, you are good to go! +4. Monitor the logs in the terminal and once you see the following, you are good to go! @@ -280,7 +240,7 @@ pnpm dev -8. Right next to the Terminal, you will see a **Ports** tab, click on it to see the ports and their respective URLs. Now access the Forwarded Address for port 3000 and you should be able to visit your Formbricks App! +5. Right next to the Terminal, you will see a **Ports** tab, click on it to see the ports and their respective URLs. Now access the Forwarded Address for port 3000 and you should be able to visit your Formbricks App!