Currently, we did not find any way to run this project outside of Visual Studio since it depends on Windows's IIS Express Server. Therefore, git clone
the project to any where locally then open it in Visual Studio and open ArtGalleryWebsite.sln
and run the project in Visual Studio.
First of all, you'll have to be able to set up a local development environment. There are some things that you have to get set up. First, make sure your system has Node installed, else you can use nvm or if you're on Windows nvm-windows.
For IDEs, you'll definitely need Visual Studio in this case, then we recommned you getting Visual Studio Code in this case, it helps working with Vue and Typescript a lot easier. Grab the Vetur plugin for syntax highlighting and code-formatting for Vue.
- Install yarn if you haven't already
npm install -g yarn
- Open a terminal instance at the project root and run
yarn
, this will install the required dependencies - Run
yarn dev
, this will start webpack and tailwind in watch mode - Open up Visual Studio and open
ArtGalleryWebsite.sln
and run the IIS Express server.
That's it! Visual Studio should open up your browser and you can now start contributing to the project!
It is a modifed from Visual Studio's ASP.NET Web Forms template. Most of the things follow standard ASP.NET standards except that we have our frontend Vue/Typescript files located in Scripts/src
.
Api
- This folder stores all web services exposed by the backendModels
- All models (classes) should be under here eg. ApiResponse, ErrorModels/Entities
- All entities from the database should be under hereModels/Queries
- All queries made should be under hereAuth
- Here stores all auth redirect pages eg. LoginUtils
- Here stores C# utilities for ASP.NET
Scripts/src/components
- All Vue components should be located hereScripts/src/pages
- The page component for a specific page eg. Home.vueScripts/src/stores
- Global states that are shareable across different pagesScripts/src/types
- Typescript types files are stored hereScripts/src/utils
- Utilities or helpers functions are stored hereScripts/dist
- This folder stores the bundled javascript files by Webpack
In Scripts/src
you will see some javascript files eg. HomePage.js this is for mounting the page component onto ASP.NET's aspx file.