How to Set Up a Full-Stack Dev Environment in 10 Minutes


πŸš€ How to Set Up a Full-Stack Dev Environment in 10 Minutes

So, you want to build web applications but don’t know where to start? Whether you’re a beginner or an experienced developer looking for a quick setup guide, this post will take you from zero to a fully functional full-stack development environment in just 10 minutes!

By the end of this guide, you’ll have:
βœ… VS Code for coding
βœ… Git for version control
βœ… Node.js & npm for JavaScript/TypeScript projects
βœ… Angular for frontend development
βœ… .NET Core for backend development
βœ… PostgreSQL for database management

⏳ Estimated Time: 10 minutes
🎯 Target Audience: Full-stack developers, beginners, and professionals

Let’s get started! πŸƒβ€β™‚οΈπŸ’¨


πŸ›  Step 1: Install VS Code (2 minutes)

πŸ“Œ Why? VS Code is a lightweight yet powerful code editor with rich extensions for full-stack development.

πŸ”Ή Installation Steps

  1. Download VS Code.
  2. Install it on your system.
  3. Open VS Code and install the following must-have extensions:
    • 🟒 C# (for .NET Core development)
    • πŸ”΅ ESLint (for JavaScript/TypeScript linting)
    • 🎨 Prettier (for automatic code formatting)
    • πŸ—„ PostgreSQL (for connecting to your database inside VS Code)

βœ… Quick Check

  • Open VS Code and press Ctrl + Shift + X to open the Extensions panel.
  • Search and install the extensions above.

🌍 Step 2: Install Git (1 minute)

πŸ“Œ Why? Git allows you to track changes, collaborate, and deploy your projects.

πŸ”Ή Installation Steps

  1. Download Git and install it.
  2. Open Command Prompt or Terminal and run: git --version βœ… If you see a version number, Git is installed successfully! πŸŽ‰
  3. Set up your global Git config (replace with your details): git config --global user.name "Your Name" git config --global user.email "your.email@example.com"

🟒 Step 3: Install Node.js & npm (1 minute)

πŸ“Œ Why? Node.js lets you run JavaScript outside the browser, and npm (Node Package Manager) manages your project dependencies.

πŸ”Ή Installation Steps

  1. Download Node.js (LTS version) and install it.
  2. Verify installation: node -v npm -v βœ… If you see version numbers, Node.js and npm are installed! πŸŽ‰
  3. Install Angular CLI globally: npm install -g @angular/cli βœ… This allows you to create and manage Angular projects easily.

πŸ”΅ Step 4: Install .NET Core SDK (2 minutes)

πŸ“Œ Why? .NET Core is used for building high-performance backend applications.

πŸ”Ή Installation Steps

  1. Download .NET Core SDK.
  2. Install it and verify: dotnet --version βœ… If you see a version number, .NET Core is installed! πŸŽ‰
  3. Create a test project: dotnet new console -o MyApp cd MyApp dotnet run βœ… If you see β€œHello, World!” in your terminal, .NET Core is working perfectly!

πŸ—„ Step 5: Install PostgreSQL (2 minutes)

πŸ“Œ Why? PostgreSQL is an advanced open-source database that integrates well with .NET and Angular.

πŸ”Ή Installation Steps

  1. Download PostgreSQL and install it.
  2. During installation, set a strong password for the “postgres” user.
  3. Open pgAdmin (PostgreSQL’s GUI) or connect via Terminal: psql -U postgres
  4. Create a new database: CREATE DATABASE fullstack_dev; βœ… Your database is ready! πŸŽ‰

πŸš€ Step 6: Create a Full-Stack Project (2 minutes)

Now, let’s build a simple full-stack project using:

  • Angular (Frontend)
  • .NET Core (Backend API)
  • PostgreSQL (Database)

Backend: Create a .NET Core Web API

  1. Open a terminal and run: dotnet new webapi -o Backend cd Backend dotnet run
  2. Open http://localhost:5000/swagger to see the default API running.

Frontend: Create an Angular Project

  1. Open another terminal and run: ng new frontend cd frontend ng serve
  2. Open http://localhost:4200/ to see your Angular app running!

Connect .NET Core to PostgreSQL

  1. Install Entity Framework Core for PostgreSQL: dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL
  2. Configure appsettings.json: "ConnectionStrings": { "DefaultConnection": "Host=localhost;Database=fullstack_dev;Username=postgres;Password=YourPassword" }
  3. Apply migrations and update the database: dotnet ef migrations add InitialCreate dotnet ef database update

βœ… Now your .NET Core API is connected to PostgreSQL! πŸŽ‰


🎯 Final Check: Your Full-Stack Dev Environment is Ready!

βœ… VS Code installed
βœ… Git configured
βœ… Node.js & npm working
βœ… Angular CLI installed
βœ… .NET Core running
βœ… PostgreSQL database created

Now you can start building full-stack applications! πŸš€


πŸ’‘ Next Steps

Now that your development environment is ready, here’s what you can do next:
πŸ”Ή Build an Angular UI with Material UI.
πŸ”Ή Secure your .NET API with JWT authentication.
πŸ”Ή Deploy your app using Docker, AWS, or Azure.

If you found this guide helpful, share it with your developer friends and leave a comment below! πŸš€πŸ’¬

Happy coding! πŸŽ‰πŸ”₯

Out of memory in angular build include code to fix

Out of Memory Errors in Angular Build

By Blogs Overflow / 17 January 2024 / 0 Comments

Don’t miss these tips!

We don’t spam! Read our privacy policy for more info.

Leave a comment