π 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
- Download VS Code.
- Install it on your system.
- 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
- Download Git and install it.
- Open Command Prompt or Terminal and run:
git --version
β If you see a version number, Git is installed successfully! π - 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
- Download Node.js (LTS version) and install it.
- Verify installation:
node -v npm -v
β If you see version numbers, Node.js and npm are installed! π - 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
- Download .NET Core SDK.
- Install it and verify:
dotnet --version
β If you see a version number, .NET Core is installed! π - 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
- Download PostgreSQL and install it.
- During installation, set a strong password for the “postgres” user.
- Open pgAdmin (PostgreSQLβs GUI) or connect via Terminal:
psql -U postgres
- 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
- Open a terminal and run:
dotnet new webapi -o Backend cd Backend dotnet run
- Open
http://localhost:5000/swagger
to see the default API running.
Frontend: Create an Angular Project
- Open another terminal and run:
ng new frontend cd frontend ng serve
- Open
http://localhost:4200/
to see your Angular app running!
Connect .NET Core to PostgreSQL
- Install Entity Framework Core for PostgreSQL:
dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL
- Configure
appsettings.json
:"ConnectionStrings": { "DefaultConnection": "Host=localhost;Database=fullstack_dev;Username=postgres;Password=YourPassword" }
- 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! ππ₯