Skip to content

huynhducthanhtuan/RunGroup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RunGroup WebApp

An online platform for runners who can find clubs, events, and meet other runners in your area.

Prerequisites

1. .NET 6.0 SDK

Installation Guide

1. Clone repository

git clone https://github.com/huynhducthanhtuan/practice-nestjs-typescript.git

2. Import SQL Server database from RunGroups.bak file

3. Update SQL Server database connection string

appsettings.json

"ConnectionStrings": {
  "DefaultConnection": "Data Source=THANHTUAN;Initial Catalog=RunGroups;Integrated Security=True;Connect Timeout=30;Encrypt=False;Trust Server Certificate=False;Application Intent=ReadWrite;Multi Subnet Failover=False"
}
Change THANHTUAN with your computer name

4. Register Cloudinary account and update Cloudinary config

appsettings.json

"CloudinarySetting": {
  "CloudName": "",
  "ApiKey": "",
  "ApiSecret": ""
}
Update above config with your Cloudinary config

5. Register IPInfo account and update IPInfo token in API URL

Controllers/HomeController.cs

string url = "https://ipinfo.io?token=IPInfo-Token";
Change IPInfo-Token with your IPInfo token

6. Run project (Visual Studio UI or Terminal)

dotnet build
dotnet run
Exception when backup database
If Step 2 of Installation Guide fails, you can do it manually like this
1. Create SQL Server database named RunGroups
2. Update SQL Server database connection string (Step 3 - Installation Guide)
3. Add Migration (Open Package Manager Console)
Add-Migration Initialize
4. Update Database (Open Package Manager Console)
Update-Database
5. Seed Data (Open Terminal)
dotnet run seeddata
Run on Docker
1. Build an image
docker build -t rungroup-image -f Dockerfile .
2. Run image
docker run rungroup-image
Change rungroup-image with your image name

Reference Resources

ASP.NET Core MVC Course

Deploy ASP.NET web app to Azure

Dockerize a .NET app

RunGroup Repository