Giter Site home page Giter Site logo

safe-crudapp's Introduction

Expense recorder application

The application demonstrates what can be accomplished in 30-40 hours with SAFE stack with a very basic knowledge of the SAFE. Application features:

  • Giraffe based backend
  • using Postgres with F# Data Providers for persisting app data
  • simplistic REST Api
  • authentication and authorization
  • sharing F# code between client and server to ensure contracts
  • client routing to ensure application is navigation friendly
  • Fulma to build nice looking UI with a very basic HTML design skills

I would love to use some newer things to simplify say client-server communication (kudos to Zaid Ajaj) but I was asked to expose REST Api.

Install pre-requisites

You'll need to install the following pre-requisites in order to build SAFE applications:

  • The .NET Core SDK 3 or newer
  • install tools by running dotnet tool restore in the project folder
  • The Yarn package manager (you can also use npm but the usage of yarn is encouraged).
  • Node LTS installed for the front end components.

How to build

  • setup local Postgresql and roll out "expenses" database
  • restore database schema by running psql -d expenses -a -f create-db.sql from src/server folder
  • correct connection settings in src/server/DataAccess.fs
  • build using dotnet fake build command line

Now you could run the application:

cd src/server
dotnet run
  • now navigate to [http://localhost:8085]
  • if the database is new connect under admin/<pwd>, where pwd is some number you can find in server logs

fake build target Run starts development mode.

safe-crudapp's People

Contributors

dependabot[bot] avatar olegzee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.