Giter Site home page Giter Site logo

freymaurer / usermanagement Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 1.0 7.4 MB

SAFE stack User Management with Asp.net Core Identity, Saturn, Fable Remoting

HTML 0.51% JavaScript 8.70% F# 90.72% SCSS 0.07%
saturn safe-stack asp-net-core fable-remoting authentication giraffe asp-net-core-identity

usermanagement's Introduction

SAFE Template

Highly recommend improving error handling and password prompts in this example repo with Feliz.SweetAlert style alerts.

This template can be used to generate a full-stack web application using the SAFE Stack. It was created using the dotnet SAFE Template. If you want to learn more about the template why not start with the quick start guide?

Install pre-requisites

You'll need to install the following pre-requisites in order to build this SAFE application.

Starting the application

Before you run the project for the first time only you must install dotnet "local tools" with this command:

dotnet tool restore

Starting the application for the first time will prompt you to install local certificates for https support. When the following image pops up go Install Certificate > Current User > Place all certificates in the following store > Trusted Root Certification Authorities > confirm all choices "Finish, yes, etc".

local certificate img

To concurrently run the server and the client components in watch mode use the following command. This will also run docker-compose for an mssql database (Port:1433) and an adminer instance (Port:8082).

!! Before you are able to use the auth. functionality you first need to migrate the identityDb schema onto the freshly created docker database. To do this publish the db/.dbframe/dbframe.dacpac file to the database. If you know how to automate this step. Please feel free to open an issue with the relevant information or -best case- open a pull request with the solution.

Publish dacpac with Visual Studio

dotnet run

Then open http://localhost:8080 in your browser.

The build project in root directory contains a couple of different build targets. You can specify them after -- (target name is case-insensitive).

To run concurrently server and client tests in watch mode (you can run this command in parallel to the previous one in new terminal):

dotnet run -- RunTests

Client tests are available under http://localhost:8081 in your browser and server tests are running in watch mode in console.

Finally, there are Bundle and Azure targets that you can use to package your app and deploy to Azure, respectively:

dotnet run -- Bundle
dotnet run -- Azure

SAFE Stack Documentation

If you want to know more about the full Azure Stack and all of it's components (including Azure) visit the official SAFE documentation.

You will find more documentation about the used F# components at the following places:

usermanagement's People

Contributors

dependabot[bot] avatar freymaurer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

londospark

usermanagement's Issues

Implement JWT authentification

Cookie based authentication is service related, while JWT should allow users to request from one UserManagement service and use token to log in into multiple mikroservices.

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.