Skip to content

FongFox/simple_dating_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Dating App

A minimal dating app skeleton with Backend: .NET 9 (C#) and Frontend: Angular (TypeScript). This README only covers what the project is and how to run it locally.


1. Project Overview

  • Goal: Quick-start a simple, split FE/BE app for learning and experiments.
  • Architecture: Decoupled frontend (Angular) and backend (ASP.NET Core).

Tech Stack

  • Backend: ASP.NET Core (.NET 9), Controllers, Swagger/postman
  • Frontend: Angular (v18+), TypeScript, HttpClient, Angular Router.

Project Layout

simple_dating_app
├─ API
│  ├─ API.csproj
│  ├─ appsettings.Development.json
│  ├─ appsettings.json
│  ├─ Controllers
│  │  ├─ AccountController.cs
│  │  ├─ BaseApiController.cs
│  │  ├─ MembersController.cs
│  │  └─ WeatherForecastController.cs
│  ├─ Data
│  │  ├─ AppDbContext.cs
│  │  └─ Migrations
│  │     ├─ 20250928083454_InitialCreate.cs
│  │     ├─ 20250928083454_InitialCreate.Designer.cs
│  │     ├─ 20250929115021_UserEntityUpdated.cs
│  │     ├─ 20250929115021_UserEntityUpdated.Designer.cs
│  │     └─ AppDbContextModelSnapshot.cs
│  ├─ dating.db
│  ├─ DTOs
│  │  ├─ LoginDto.cs
│  │  ├─ RegisterDto.cs
│  │  └─ UserDto.cs
│  ├─ Entities
│  │  └─ AppUser.cs
│  ├─ Extensions
│  │  └─ AppUserExtensions.cs
│  ├─ Interfaces
│  │  └─ ITokenService.cs
│  ├─ Program.cs
│  ├─ Properties
│  │  └─ launchSettings.json
│  ├─ Services
│  │  └─ TokenService.cs
│  └─ WeatherForecast.cs
├─ client
│  ├─ .editorconfig
│  ├─ .postcssrc.json
│  ├─ angular.json
│  ├─ eslint.config.js
│  ├─ package-lock.json
│  ├─ package.json
│  ├─ public
│  │  └─ favicon.ico
│  ├─ README.md
│  ├─ src
│  │  ├─ app
│  │  │  ├─ app.config.ts
│  │  │  ├─ app.css
│  │  │  ├─ app.html
│  │  │  ├─ app.routes.ts
│  │  │  └─ app.ts
│  │  ├─ index.html
│  │  ├─ main.ts
│  │  └─ styles.css
│  ├─ ssl (for simulation only)
│  │  ├─ localhost-key.pem
│  │  └─ localhost.pem
│  ├─ tsconfig.app.json
│  ├─ tsconfig.json
│  └─ tsconfig.spec.json
├─ ReadMe.md
└─ simple_dating_app.sln

2. Prerequisites

  • .NET SDK 9
  • Node.js 22.16.0 LTS + npm

3. Run Locally

3.1. Backend (.NET 9)

  1. Restore, build, and run:
cd api
dotnet restore
dotnet build
dotnet run
  1. The API typically listens on one of these ports (machine-dependent):

3.2. Frontend (Angular)

  1. Install deps and start the dev server:
cd ../client
npm ci
npm start   # same as: ng serve
  1. The app runs at:
  • http://localhost:4200
  • Note: Configure the API base URL in your Angular code (e.g., environment.ts) to match the backend port.

4. Quick Connectivity Test

  1. Open Swagger at http://localhost:/swagger and call GET /api/ping.
  2. In the Angular app, call the same endpoint via HttpClient and show the response to verify FE ⇄ BE communication.

Project for personal education only!

About

Simple Dating App (Demo) using .Net (C#) for BE, Angular (TS) for FE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors