https://github.com/shaik-zuher/time_trend
Ecommerce Website for Watches
https://github.com/shaik-zuher/time_trend
angular csharp dotnet
Last synced: about 1 year ago
JSON representation
Ecommerce Website for Watches
- Host: GitHub
- URL: https://github.com/shaik-zuher/time_trend
- Owner: Shaik-Zuher
- Created: 2025-04-02T13:13:08.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-04-05T09:20:04.000Z (about 1 year ago)
- Last Synced: 2025-04-05T10:24:23.927Z (about 1 year ago)
- Topics: angular, csharp, dotnet
- Language: C#
- Homepage:
- Size: 14.3 MB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Time Trend
Angular Cli-19
Asp.Net Version 8.0.0(Using latest versions creates problems connecting database)
Mysql
You will need 2 terminals.
---
# Steps to Set Up & Run the Project
## 1.Clone Repositoy or Download Zip file
Method 1:
Fork repository and download zip file
OR
Method 2:
To Clone Repository
open vscode terminal, run:
```bash
git clone https://github.com/Shaik-Zuher/Watches.git
```
## 2. Install .NET 8 SDK* (if not installed)
Check version
```bash
dotnet --version
```
If not installed, download from: [Net 8.0](https://dotnet.microsoft.com/en-us/download/dotnet/8.0)
## 3. Navigate to API Folder
```bash
cd WatchEcom.Api
```
## 4. Install Dependencies
```bash
dotnet restore
```
## 5. Configure Database (MySQL)
Make sure MySQL is installed and running.
Update the connection string in appsettings.json if needed:
json
```bash
"ConnectionStrings": {
"DefaultConnection": "server=localhost;port=3306;database=WatchEcomDB;user=root;password=YourPassword;"
}
```
Replace localhost,user,password with your mysql credentials.
## 6. Apply Database Migrations
```bash
dotnet ef database update
```
(If dotnet ef is missing, install it using )
```bash
dotnet tool install --global dotnet-ef
```
Somtimes step 6 doesn't work then run the following:
```bash
ls Migrations/
```
1. If migrations exist:
close the vscode and once try again from step 3.
2. If no migrations exist
```bash
dotnet ef migrations add Initial
dotnet ef database update
```
continue to step 7
## 7. Run the Backend
```bash
dotnet run
```
API will be available at https://localhost:5194/api/
## Now open another Terminal
## In Vscode Terminal>new Terminal(We need 2 terminals running simultaneously)
## 8. Install Node.js & Angular CLI
Check versions:
```bash
node -v
ng version
```
If not installed, get Node.js from [Nodejs](https://nodejs.org/) and install Angular CLI:
```bash
npm install -g @angular/cli
```
## 9. Navigate to Frontend Folder
```bash
cd WatchEcom.App
```
## 10. Install Dependencies
```bash
npm install
```
## 11. Run the Angular App
```bash
ng serve
```
Frontend will be available at http://localhost:4200/
---
## *Testing*
- Open *http://localhost:4200/* in a browser.
If you run into any errors use Chatgpt and Stack Overflow to fix errors.
# Members
Makireddy Siva Sai Teja - teja41622@gmail.com
Shaik Zuheruddin - zuheruddinshaik@gmail.com
Sai Satya Navya Sri Vasamsetti - navya4814@gmail.com
KONETI RAM SAI VENKATA DURGA PRASAD - ramsaikoneti9383@gmail.com