Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/smj0x/BlazorPoint

Blazor (Client Side) on SharePoint
https://github.com/smj0x/BlazorPoint

blazor blazor-application blazor-client blazor-webassembly sharepoint sharepoint-site wasm webassembly

Last synced: 2 days ago
JSON representation

Blazor (Client Side) on SharePoint

Lists

README

        

# Blazor for SharePoint
BlazorPoint is Blazor(Client Side) on SharePoint

This is a sample project to help you get started with hosting blazor on SharePoint Pages, Completely Client Side.
This Project is an experimental project, still missng authorizations and other cool stuff which will be added later on.

This Project Contains Components such as:
- Insert data into lists using forms
- uploading attachments to list item
- people picker
- lookup lists
- tables to list items with search
- repeat section to add data to another list

and lots more will be added as soon as published.

Steps to set up and running, you will need [https://dot.net]

## Step 1:

Create your project using this below command

`dotnet new blazorwasm -o [YourProjectName]`
`cd [YourProjectName]/wwwroot`

Now, rename your _index.html_ file to any file name with _.aspx_

Example:
`index.html`
to
`default.aspx`

## Step 2:
Determine your site collection root path.

for example if you are using . sharepoint site collection with root name http://[your_site].com/ . or
"http:/[your_site].com/sites/example"

either way edit your _default.aspx_ file to reflect the base meta tag

Example:

for root path
``

for _sites/example_ path
``

if you are hosting in _Pages_ Library
``

## Step 3:

Allow .json in Central admin then

`Manage WebApp -> Block Types -> Remove json-> save`

Modify your Web Applications Web.Config and add or replace this line if it already exists.

``

if you want to allow .json file only on pages library

change path attribute to `path="/Pages/*.json"`

## Step 4:

Making your default.aspx as welcome page.

Navigate to `Site Settings -> Welcome Page` in your site collection, if you don't see this option enable
site collection feature `SharePoint Server Publishing Infrastructure`

Then enable `SharePoint Server Publishing` in site feature

## Demo

Demo Project: Datacenter Visitor Log.

1) Import List Template in ListTemplate Folder
2) Change List Guid & List Type in Contants/Settings.cs File
3) Create SharePoint Groups Named As (Admins,DC-OP-Jeddah,DC-OP-Dammam,DC-OP-Riyadh)

![BlazorPoint](demo.gif)

## Contributors

- Syed Mohammed Jafary