This project is developed by angular as frontend and .NET for backend API. It is developed for our webtech course final project
ezgif.com-gif-maker.mp4
#running API
- run microsft SQL server management studio
- copy connection string and connect with your database
- goto API_dotnet
- run dotnet restore from command prompt
- open "API_dotnet/Models/DatabaseContext.cs" and change connection string
- run 'Add-Migration --init' followed by 'Update-Database --verbose'
- run application by 'dotnet run' or by visual studio IDE
- make a post request from post-man to create a admin route: 'http://0.0.0.0:5002/api/User/Add'
- body(json): {
- "email":"your mail",
- "fullName":"fullname",
- "userName":"username",
- "password":"pass",
- "nationality":"nationality",
- "dateOfBirth":"birth date",
- "isAdmin":true
- }
- run 'npm install'
- run 'ng serve --open'
- There are three kinds of user
- guest user: can read news, search news, see comment, register for a account, login
- registered user: in addition to guest user he can commment and manage his account
- admin: in addition to registered user admin can modify,delete,create and manage account