{"id":20059168,"url":"https://github.com/rd003/moviestoremvc","last_synced_at":"2025-10-25T18:02:48.533Z","repository":{"id":134506308,"uuid":"558911860","full_name":"rd003/MovieStoreMvc","owner":"rd003","description":"Learn to build a project in dot net 6 mvc from scratch with authentication,file handling, searching,pagination and so on ","archived":false,"fork":false,"pushed_at":"2023-12-12T09:22:42.000Z","size":558,"stargazers_count":20,"open_issues_count":0,"forks_count":17,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-12-13T08:28:14.773Z","etag":null,"topics":["dotnet-core","dotnet6"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rd003.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-10-28T15:21:18.000Z","updated_at":"2023-12-13T08:28:14.774Z","dependencies_parsed_at":"2023-06-16T17:30:30.219Z","dependency_job_id":null,"html_url":"https://github.com/rd003/MovieStoreMvc","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rd003%2FMovieStoreMvc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rd003%2FMovieStoreMvc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rd003%2FMovieStoreMvc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rd003%2FMovieStoreMvc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rd003","download_url":"https://codeload.github.com/rd003/MovieStoreMvc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224452830,"owners_count":17313668,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dotnet-core","dotnet6"],"created_at":"2024-11-13T13:06:17.385Z","updated_at":"2025-10-25T18:02:48.484Z","avatar_url":"https://github.com/rd003.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MovieStoreMvc\n\nIt is a source code of youtube tutorial. `MovieStoreMvc` is a fullstack application which displays various movies along with there genres. A movie can have multiple genres. It is a good project for beginners, they can learn to develop fullstack app with authentication and also can learn many to many relationship.\n\n## Tech stack and tools used\n\n- Visual Studio 2022\n- .Net 6 (Now upgraded to .net 9.0)\n- EF Core\n- AspnetCore Identity\n- SQL Server\n\n## Youtube tutorial link\n\n[MovieStoreMVC](https://www.youtube.com/watch?v=cQ3HH0MJqDs)\n\n## How to run it?\n\n1. clone the project\n   `git clone https://github.com/rd003/MovieStoreMvc.git`\n2. open `appsettings.json` file and update connection string's `data source=your server name`\n   \n   ``` \n    \"ConnectionStrings\": {\n          \"conn\": \"data source=your_server_name;initial catalog=MovieStoreMvc; integrated security=true;encrypt=false\"\n     }\n   ```\n3. Open Tools \u003e Package Manager \u003e Package manager console\n4. Run the command `update-database`.\n5. Now you can run this project.\n\n## Script for seeding data\n\n```sql\nUSE MovieStoreMvc;\nGO\n\n-- Insert Genres\nINSERT INTO [dbo].[Genre] ([GenreName]) VALUES ('Action');\nINSERT INTO [dbo].[Genre] ([GenreName]) VALUES ('Science Fiction');\nINSERT INTO [dbo].[Genre] ([GenreName]) VALUES ('Drama');\nINSERT INTO [dbo].[Genre] ([GenreName]) VALUES ('Comedy');\nINSERT INTO [dbo].[Genre] ([GenreName]) VALUES ('Thriller');\n\nGO\n\n-- Insert Movies\nINSERT INTO [dbo].[Movie] ([Title], [ReleaseYear], [MovieImage], [Cast], [Director])\nVALUES ('Inception', '2010', 'inception.jpg', 'Leonardo DiCaprio, Joseph Gordon-Levitt, Ellen Page', 'Christopher Nolan');\n\nGO\n\nINSERT INTO [dbo].[Movie] ([Title], [ReleaseYear], [MovieImage], [Cast], [Director])\nVALUES ('The Dark Knight', '2008', 'dark-knight.jpg', 'Christian Bale, Heath Ledger, Aaron Eckhart', 'Christopher Nolan');\n\nGO\n\nINSERT INTO [dbo].[Movie] ([Title], [ReleaseYear], [MovieImage], [Cast], [Director])\nVALUES ('Parasite', '2019', 'parasite.jpg', 'Song Kang-ho, Lee Sun-kyun, Cho Yeo-jeong', 'Bong Joon-ho');\n\nGO\n\nINSERT INTO [dbo].[Movie] ([Title], [ReleaseYear], [MovieImage], [Cast], [Director])\nVALUES ('The Grand Budapest Hotel', '2014', 'grand-budapest.jpg', 'Ralph Fiennes, Tony Revolori, Saoirse Ronan', 'Wes Anderson');\n\nGO\n\nINSERT INTO [dbo].[Movie] ([Title], [ReleaseYear], [MovieImage], [Cast], [Director])\nVALUES ('Ex Machina', '2014', 'ex-machina.jpg', 'Alicia Vikander, Domhnall Gleeson, Oscar Isaac', 'Alex Garland');\n\nGO\n\n-- Insert MovieGenre relationships\n-- Inception (Action, Sci-Fi, Thriller)\nINSERT INTO [dbo].[MovieGenre] ([MovieId], [GenreId]) VALUES (1, 1); -- Action\nINSERT INTO [dbo].[MovieGenre] ([MovieId], [GenreId]) VALUES (1, 2); -- Sci-Fi\nINSERT INTO [dbo].[MovieGenre] ([MovieId], [GenreId]) VALUES (1, 5); -- Thriller\n\nGO\n\n-- The Dark Knight (Action, Drama, Thriller)\nINSERT INTO [dbo].[MovieGenre] ([MovieId], [GenreId]) VALUES (2, 1); -- Action\nINSERT INTO [dbo].[MovieGenre] ([MovieId], [GenreId]) VALUES (2, 3); -- Drama\nINSERT INTO [dbo].[MovieGenre] ([MovieId], [GenreId]) VALUES (2, 5); -- Thriller\n\n-- Parasite (Drama, Thriller)\nINSERT INTO [dbo].[MovieGenre] ([MovieId], [GenreId]) VALUES (3, 3); -- Drama\nINSERT INTO [dbo].[MovieGenre] ([MovieId], [GenreId]) VALUES (3, 5); -- Thriller\n\n-- The Grand Budapest Hotel (Comedy, Drama)\nINSERT INTO [dbo].[MovieGenre] ([MovieId], [GenreId]) VALUES (4, 4); -- Comedy\nINSERT INTO [dbo].[MovieGenre] ([MovieId], [GenreId]) VALUES (4, 3); -- Drama\n\n-- Ex Machina (Science Fiction, Drama, Thriller)\nINSERT INTO [dbo].[MovieGenre] ([MovieId], [GenreId]) VALUES (5, 2); -- Sci-Fi\nINSERT INTO [dbo].[MovieGenre] ([MovieId], [GenreId]) VALUES (5, 3); -- Drama\nINSERT INTO [dbo].[MovieGenre] ([MovieId], [GenreId]) VALUES (5, 5); -- Thriller\n\n```\n\n## How to Register as a admin and login?\n\n1. There is a controller `UserAuthentication` and a commented method `Register`. Uncomment the `Register` method\n2. 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).\n3. Now you can login with credentials `Username: admin, password: Admin@123`\n\n## Screenshots\n\n![moviestore](./moviestore.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frd003%2Fmoviestoremvc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frd003%2Fmoviestoremvc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frd003%2Fmoviestoremvc/lists"}