There has been an update to the project on GitHub. This was a major update that causes the old project to break. I believe I have updated all the areas in the tutorial and addressing the changes. If you come across any inconsistencies, please let me know.
The goal here will be to create a simple LightSwitch HTMLClient project. We will change the name of the client and setup authentication.
Here are a few assumptions that you should be proficient at for this tutorial:
Adding files to a project
Creating data tables
Creating relationships
Basic Dev Skills
- Lets begin by starting Visual Studio 2013
- Create a new LightSwitch Desktop Application
- Call it LsCoreProject
- Open up the Properties for the LsCoreProject
- Under Access Control, select Forms Authentication
- Grant for debug the SecurityAdministration permission
- Save the project
- Right click on the LsCoreProject
- Select Add Client, give it the name of App
- Save the project
- Right click on the LsCoreProject.DesktopClient project
- Select remove
- Right click on the LsCoreProject solution
- Select Open Folder in File Explorer
- Once opened, navigate to and delete the DesktopClient folder
- Back in Visual Studio
- Save the project
- Under the LsCoreProject.Server section
- Open the Web.config
- For Microsoft.LightSwitch.Admin.UserName: LeaveMeAlone
- For Microsoft.LightSwitch.Admin.FullName: Leave Alone
- For Microsoft.LightSwitch.Admin.Password: just4fun!
- Build the solution
* as you see I go a bit overboard on saving the project
Next… Add External CSS
Here are the topics and their logical order:
- — You
- Add external CSS
- Add external scripts
- Update the default.htm
- Add LogIn/LogOut/Register/ChangePassword
- Create the security data source
- Screens for permissions
- Screens for role management
- Screens for user management
- Tables for tile menus
- Screens for icon management
- Screens for menu management
- Create a tile menu screen
- Create a database project
- How to deploy successfully
- Wrap up
Any thoughts on upgrading to MetroUICss 2.0?
Just wondering … why create an LS Desktop application and then strip out the desktop stuff and add an HTML client. Is that different from starting with an LS HTML Application?
Only reason is to show and allow the dev that you don’t have to stay with the default name of HTMLClient for your running client. If you don’t mind the default name, then you are correct, you can step over the create the desktop client part. There are other ways to change the name but this is a pretty painless process.