Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/redwoodjs/starter
Starter Repo for working with Browser IDEs, like GitPod
https://github.com/redwoodjs/starter
Last synced: about 1 month ago
JSON representation
Starter Repo for working with Browser IDEs, like GitPod
- Host: GitHub
- URL: https://github.com/redwoodjs/starter
- Owner: redwoodjs
- Created: 2023-08-15T02:02:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-27T21:00:31.000Z (8 months ago)
- Last Synced: 2024-05-22T17:23:57.247Z (7 months ago)
- Language: Dockerfile
- Size: 3.65 MB
- Stars: 2
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/)
# RedwoodJS GitPod Starter
This repository enables you to easily launch [RedwoodJS](https://redwoodjs.com/) projects inside GitPod. RedwoodJS is a full-stack JavaScript framework that combines React, GraphQL, Prisma, Jest, and Storybook to build modern web applications. With this starter, setting up a RedwoodJS development environment in GitPod becomes a straightforward process. It provides a preconfigured development environment with all the necessary tools and dependencies, allowing you to focus on building your RedwoodJS application without worrying about the setup. Get started quickly and efficiently by launching RedwoodJS inside GitPod!
## Getting Started
Click on the Open in Gitpod button.
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/)
This will launch GitPod and ask you to configure a new workspace. Click continue.
![GitPod New Workspace](images/gitpod-new-workspace.png)
GitPod will then begin to build your workspace. This may take several minutes.
What's going on behind the scenes:
- GitPod is setting the workspace set up
- It installs our recommended VS Code plugins:
- [ESLint]()
- [Git Lens]()
- [VS Code Language - Babel]()
- [VS Code Version Lens]()
- [Editor Config]()
- [Prisma]()
- [VS Code GraphQL]()
- It runs our **Create Redwood App** which will install the latest stable version of Redwood. We're setting this project to use TypeScript, however, you can [change it to JavaScript]() if you prefer.
- It runs `yarn install`, adding all the dependencies for the project
- Changes the database to a postgres databaseOnce everything is up and running, you can click on the **Ports** tab
![GitPod Ports Tab](images/gitpod-ports.png)
You can click on the address or the globe icon to open that particular port in a new tab.
- Port 5432 is the database. So, if you click on that port, you'll probably see a "Port 5432 Not Found" error, but it is working!
![GitPod, Port 5432](images/gitpod-port-5432.png)
- Port 8910 is your frontend
![GitPod, Port 8910](images/gitpod-port-8910.png)
- Port 8911 is your backend and will show you a list of all available functions. If you add `/graphql` to the end of the URL, you should see the GraphQL Playground
![GraphQL Playground on GitPod](images/gitpod-graphql.png)# The Starting Files, within this Repository
## .gitpod.yml
This contains the bulk of the GitPod setup. We're using the `gitpod/workspace-postgres` image.
Then, we're running a couple of tasks to initialize the workspace:
Create Redwood app, using feature flags to specify preferences.
```bash
yarn create redwood-app . --overwrite --yarn-install --typescript --git-init=false
```Then, we're running the script inside `gitpod-setup.js`.
We've specified several ports:
- `5432` for Postgres
- `8910` for the frontend
- `8911` for the backendLastly, we've listed 8 recommended VS Code extensions to install.
## .gitpod.env
This file lists initializes the environment variables for the workspace.
```text
DATABASE_URL=""
TEST_DATABASE_URL=""
PRISMA_HIDE_UPDATE_MESSAGE=""
```