Code Monkey home page Code Monkey logo

toss.blazor's Introduction

Build Status

Toss.Blazor

Twitter-like web application using Blazor 3.0.0-preview7. You can login, post a new message (a "toss") with hashtag and select your favorite hashtags for finding messages.

Tech stack

  • Blazor 3.0.0-preview7
  • Pure CSS
  • Asp.net Core 3.0.0-preview7
  • MediatR
  • RavenDB

Feature list

  • Security pages : auth/open id, edit account, reset password
  • Push new messages
  • Filter message by hashtag
  • Add hashtag to your profile
  • Create sponsored (payinng) toss
  • See most used tags
  • See user message
  • start private conversation with message author (in progress)
  • report message as not respecting code of conduct (in progress)
  • user personnal home page with all favorite tags (in progress)

Running this project

// install sdk version from global.json here https://dotnet.microsoft.com/download
git clone https://github.com/RemiBou/Toss.Blazor
dotnet build
docker-compose up -d ravendb
//Edit Toss.Server secrets with your values using the empty-secrets.json provided
cd Toss.Server
dotnet run

You can find explanation of the different things done on this project on my blog here : https://remibou.github.io/

The current roadmap is here https://trello.com/b/czBBGKsw/toss

toss.blazor's People

Contributors

ch1sel avatar chancity avatar danroth27 avatar remibou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

toss.blazor's Issues

Window is blank after Blazor gets initialized

I tried to run your project on my computer and followed all steps alls described:

run CosmosDB Emulator
Edit Toss.Server secrets with your values using the empty-secrets.json provided
Build Toss.Server
Run Toss.Server

But the screen gets blank after "Welcome to TOSS".
I don't see any error in the browser console and the last XHR I receive is Toss.Shared.pdb
If I run it with Kestrel, the last log item is:
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2] Request finished in 831.4639ms 304 text/html

What is wrong?

HTTP Error 502.5 - Process Failure

HTTP Error 502.5 - Process Failure

After git clone, restore and run in VS2017

Excellent initiative BTW, I've been looking for sometime for this concept of implementing asp.net core auth in Blazor.

Authentication Details

Hi, I am trying to use the authentication part of your project in my own project.

However, I am using ASP.NET tables on SQL to do the auth using Microsoft accounts. I have ported the auth code succesfully and I am able to log in. However: when doing calls on the AcccountController, the server does not know I have logged in. How is this handled in your project? Does the client get authed? And how does the client know this? Using cookies maybe?

Could you try and explain a little bit about the auth process in your project? It would be greatly appreciated.

.dll file not found

From @Tirumalesh8686 on Friday, August 30, 2019 4:58:15 AM

"https://github.com/RemiBou/Toss.Blazor"

Im trying to run the code from above link.....I resolved most of the errors but still there is a error coming up saying

Im getting the mentioned error when im trying to build Toss.Server....

Severity Code Description Project File Line Suppression State
Error: Could not find file 'D:\User\Toss.Blazor-master\Toss.Client\bin\x64\Release\netstandard2.0\Toss.Client.dll'. Toss.Server C:\Program Files\dotnet\sdk\3.0.100-preview8 013656\Sdks\Microsoft.NET.Sdk.Razor\build\netstandard2.0\Microsoft.NET.Sdk.Razor.MvcApplicationPartsDiscovery.targets 54

When im building the Toss.Client...I got the folowing warnings...

NETSDK1080 A PackageReference to Microsoft.AspNetCore.App is not necessary when targeting .NET Core 3.0 or higher. If Microsoft.NET.Sdk.Web is used, the shared framework will be referenced automatically. Otherwise, the PackageReference should be replaced with a FrameworkReference.
Toss.Tests.E2E C:\Program Files\dotnet\sdk\3.0.100-preview8-013656\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.DefaultItems.targets 154 (Project:Toss.tests)

NETSDK1080 A PackageReference to Microsoft.AspNetCore.App is not necessary when targeting .NET Core 3.0 or higher. If Microsoft.NET.Sdk.Web is used, the shared framework will be referenced automatically. Otherwise, the PackageReference should be replaced with a FrameworkReference.
Toss.Tests C:\Program Files\dotnet\sdk\3.0.100-preview8-013656\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.DefaultItems.targets 154 (Project:Toss.tests.e2e)

Im using ASP.Net Core SDK 3.0 preview8

Help me with these issues....

There are many other issues initially....
I have removed @using Microsoft.AspNetCore.Components.Layouts in _Imports.razor in Toss.Client and changed the line Microsoft.AspNetCore.Components.LayoutAttribute where error occured to Microsoft.AspNetCore.Components.Layouts.LayoutAttribute which helped in resolving those errors

Copied from original issue: aspnet/Blazor#1870

Error when trying to build Toss.Server

Im getting the mentioned error when im trying to build Toss.Server....
Severity Code Description Project File Line Suppression State
Error: Could not find file 'D:\User\Toss.Blazor-master\Toss.Client\bin\x64\Release\netstandard2.0\Toss.Client.dll'. Toss.Server C:\Program Files\dotnet\sdk\3.0.100-preview8 013656\Sdks\Microsoft.NET.Sdk.Razor\build\netstandard2.0\Microsoft.NET.Sdk.Razor.MvcApplicationPartsDiscovery.targets 54

When im building the Toss.Client...I got the folowing warnings...

  1. NETSDK1080 A PackageReference to Microsoft.AspNetCore.App is not necessary when targeting .NET Core 3.0 or higher. If Microsoft.NET.Sdk.Web is used, the shared framework will be referenced automatically. Otherwise, the PackageReference should be replaced with a FrameworkReference.

Toss.Tests.E2E C:\Program Files\dotnet\sdk\3.0.100-preview8-013656\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.DefaultItems.targets 154 (Project:Toss.tests)

  1. NETSDK1080 A PackageReference to Microsoft.AspNetCore.App is not necessary when targeting .NET Core 3.0 or higher. If Microsoft.NET.Sdk.Web is used, the shared framework will be referenced automatically. Otherwise, the PackageReference should be replaced with a FrameworkReference.

Toss.Tests C:\Program Files\dotnet\sdk\3.0.100-preview8-013656\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.DefaultItems.targets 154 (Project:Toss.tests.e2e)

Im using ASP.Net Core SDK 3.0 preview8

Help me with these issues....

There are many other issues initially....
I have removed @using Microsoft.AspNetCore.Components.Layouts in _Imports.razor in Toss.Client and changed the line Microsoft.AspNetCore.Components.LayoutAttribute where error occured to Microsoft.AspNetCore.Components.Layouts.LayoutAttribute which helped in resolving those errors

cannot build the project

Hi

i'm not able to build the project using Visual Studio 2019, the error message is :

Severity Code Description Project File Line Suppression State
Error MSB4036 The "RazorGenerate" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project file, or in the *.tasks files located in the "C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Current\Bin" directory. Toss.Client C:\Program Files\dotnet\sdk\3.0.100-preview3-010431\Sdks\Microsoft.NET.Sdk.Razor\build\netstandard2.0\Microsoft.NET.Sdk.Razor.Component.targets 93

i installed the Razor Generate extension but the problem is still there and i cannot build the project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.