Git Product home page Git Product logo

bookweb's Introduction

book0423 - Book Registration and Book Search using F# WebSharper

https://fujiwat.github.io/bookWeb/wwwroot/

image

Overview

This is a sample program of F# program using F# WebSharper-SPA. Database connection needs a client Server dataexchange and it is not implemented. (Actually database is prepared and sql is not a problem. But could not find how to edit the WebSharper-web source code.)

Requirement

Modern web browser. Visual Studio 2022, Windows 10 Commands as followings:

> dotnet new -i WebSharper.Templates
> dotnet tool install -g dotnet-ws
> cd c:\<parent-folder-of-the-projects>
> dotnet new websharper-spa -lang f# -n <project-name>
> cd <project-name>
> dotnet add package WebSharper.UI
> dotnet tool install -g dotnet-ws
> dotnet add package WebSharper.JQuery
> dotnet ws build                                 ←Able to skip this line.
> dotnet run 

Usage

This is a sample program and cannot register to your database. When reloading your page, registered data will be disappeared.

Register Books

If you try to simulate registering books, follow the steps below.

  1. Input a book data
    Input the Title, Author, Published Year. Year is a mondatory field. If you not find the year, type 0
    image image image

  2. Then click [Register].
    image

  3. Then, you can see the following line.
    image
    The Orange text line Book "new book" by "new author" is added to the top. is a message.
    Your registered book is shown on top of the list.

Search Books

  1. Type title or author. Currently year published is not effect to the result.
    Text are case insensitive.
    image

  2. Then, search result is shown on the list bellow. Text is case insensitive. If there is no title/author which means any title/author. If both title, author is not entered then all book list are shown.
    image

Features

  • Register books
  • Book Search:
    Case insensitive.
    Title = no text that means any title.
    Author = no text that means any author.
    Both Title and Author field has no text string, then all books are listed.

Reference

Book list data is created by the following web site.
The Greatest Books of All Time: Source: https://thegreatestbooks.org/

Author

Takahiro FUJIWARA
https://www.linkedin.com/in/fujiwat/

bookweb's People

Contributors

fujiwat avatar

Watchers

Adam Granicz 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.