DEV Community

Eduard Constantin
Eduard Constantin

Posted on • Edited on

3

[Storybook GPT] Set up project in Github Codespaces

After deciding what project to develop for the Github + DEV 2023 Hackathon, it is time to get to work.
As I said I will be using Github Codespaces, which allows me to spin up a fully configured development environment in the cloud. Not only does this save time and eliminates the need for local setup, but it also lets me work from any device with an internet connection - including my tablet. This will be especially helpful since I plan to work on the project while sitting in bed :).

In this post, I will show how I set up my project on GitHub Codespaces and started coding instantly.

Step 1 - Create a new codespace

After creating the repository, we need to click on the green Code button and switch to the Codespaces tab. This is where the magic happens. We have two options here:

  • click on the + button and create a new codespace on main branch with the default options;
  • click on the three dots button and select to create a new codespace with options;

I opted for the later and I changed the options as shown in the image bellow.

Codespace configuration

Once we click on the green Create codespace button, it takes less than one minute to set up a development environment that’s ready to use. I was also impressed to see that all my VSCode extensions were installed in the codespace automatically.

Step 2 - Set up the project

Now we need to set up the project. For this hackathon, I will use NextJS 13 with Typescript and Tailwind CSS. After running the following command in the terminal npx create-next-app@latest, this is how the codespace appears:

NextJS project in codespace

Now it's time to remove the default files and start working on the project.

Conclusion

GitHub Codespaces is a powerful tool that enables you to code from anywhere without setting up anything locally. You can create and customize codespaces for any project on GitHub and enjoy a fast and consistent development experience.

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay