Skip to content

This project is made by angular as frontend and .NET for backend API

Notifications You must be signed in to change notification settings

arman18/Online-News-Portal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Online-News-Portal

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

how to run

#running API

  1. run microsft SQL server management studio
  2. copy connection string and connect with your database
  3. goto API_dotnet
  4. run dotnet restore from command prompt
  5. open "API_dotnet/Models/DatabaseContext.cs" and change connection string
  6. run 'Add-Migration --init' followed by 'Update-Database --verbose'
  7. run application by 'dotnet run' or by visual studio IDE
  8. make a post request from post-man to create a admin route: 'http://0.0.0.0:5002/api/User/Add'
  9. body(json): {
  10. "email":"your mail",
  11. "fullName":"fullname",
  12. "userName":"username",
  13. "password":"pass",
  14. "nationality":"nationality",
  15. "dateOfBirth":"birth date",
  16. "isAdmin":true
  17. }

running Angular_frontent

  1. run 'npm install'
  2. run 'ng serve --open'

project description

  1. 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

About

This project is made by angular as frontend and .NET for backend API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published