Skip to content

123SurpriseME/backend-playground

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

129 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend Playground

B2Lab Logo

Backend Playground is an interactive learning platform for backend development. It combines labs, exercises, and a code playground for beginners to practice backend concepts in a real Node.js environment, directly from the browser.

Quick Start

Prerequisites

  • Node.js (v18 or higher)
  • pnpm (recommended) or npm

Start All Services (Recommended)

# Install all dependencies
pnpm install

# Start both client and server simultaneously
pnpm run dev

This will start:

  • Client at http://localhost:4200
  • Server at http://localhost:4000

Start Services Separately

Start the Backend Server only

cd server
pnpm install
pnpm run dev

The server will be available at http://localhost:4000

Start the Frontend Client only

cd client
pnpm install
pnpm run dev

The client will be available at http://localhost:4200

Development

Building for Production

Build both client and server:

pnpm run build

Build individually:

# Frontend
cd client
pnpm run build

# Backend
cd server
pnpm run build
pnpm start

Running Tests

Run all tests:

pnpm run test

Run tests individually:

# Backend tests
cd server
pnpm test

# Frontend linting
cd client
pnpm run lint

Project Structure

  • client/ - React frontend application
  • server/ - Express.js backend API server

Each application can be deployed independently to different platforms.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test both client and server
  5. Submit a pull request again the dev branch

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 85.0%
  • CSS 9.2%
  • JavaScript 5.5%
  • HTML 0.3%