Now upgraded to .net 8.0
-
clone the project
git clone https://github.com/rd003/MovieStoreMvc.git
-
open
appsettings.json
file and update connection string'sdata source=your server name
"ConnectionStrings": { "conn": "data source=your_server_name;initial catalog=MovieStoreMvc; integrated security=true;encrypt=false" }
-
Delete
Migrations
folder -
Open Tools > Package Manager > Package manager console
-
Run these 2 commands
(i) add-migration init (ii) update-database
-
Now you can run this project
- There is a controller
UserAuthentication
and a commented methodRegister
. Uncomment theRegister
method - Run the project and hit the url
https://localhost:7095/UserAuthentication/Register
. You will be registered as a admin. Now you can re comment the register user (for privacy). - Now you can login with credentials
Username: admin, password: Admin@123