Thanks for the feedback Guilherme. Frontend applications can be tested like you would on your localhost. Once you start the server, Gitpod shows you how to access the website. You can even make it public to share with others if you want their feedback while you're developing a feature.
Backend applications are the same. In my current project, it's 3 NodeJS apps in a monorepo that I start with a single npm run dev command at the project root. They run on different ports and can communicate with each other just like on localhost.
Lastly, I also use Cypress.io for end-to-end tests. That runs either headless or through a graphical interface.
Unfortunately, there's no Docker support at the moment the way you'd use it loally. It's a big feature I'm waiting for too.
However, your dev environment runs as a Docker container and you can customize the image that's used. So in my case, I install the DB as part of the environment and can access it on localhost. Docs: gitpod.io/docs/config-docker/
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Excelent post Mike! I'm seeking for a cloud-based solution too, and GitPod could be one!
I have a doubt about testing, how does it work with Gitpod for both frontend and backend applications?
Thanks for the feedback Guilherme. Frontend applications can be tested like you would on your localhost. Once you start the server, Gitpod shows you how to access the website. You can even make it public to share with others if you want their feedback while you're developing a feature.
Backend applications are the same. In my current project, it's 3 NodeJS apps in a monorepo that I start with a single
npm run dev
command at the project root. They run on different ports and can communicate with each other just like on localhost.Lastly, I also use Cypress.io for end-to-end tests. That runs either headless or through a graphical interface.
Do you have specific worries about testing?
Sounds great, Mike. My concern is more related to it, how to run the environment as I am in the localhost.
I have a NodeJS API with MySQL and a React website.
And what about the database, is it running on a Docker image for your backend?
Unfortunately, there's no Docker support at the moment the way you'd use it loally. It's a big feature I'm waiting for too.
However, your dev environment runs as a Docker container and you can customize the image that's used. So in my case, I install the DB as part of the environment and can access it on localhost. Docs: gitpod.io/docs/config-docker/