GithubHelp home page GithubHelp logo

wordstats's Introduction

wordstats

.Net Core 3.1 Application that implements simple word stats API .

How to Start

  1. Make sure There is a database connection. The project uses a localDB (see appsettings.json) but it can be connected to a remote database if needed. This can be done on VS19 through the SQL Server Explorer Window by, doing Add Database... in case its missing. The name must be WordsDB
  2. Run the InitializeDB.sql in order to create the necessary tables and entries. (This can be done through Visual Studio 2019)
  3. To build and run open VS19 and make sure to use the PribV2 launchsettings profile to start, which will run it on http://localhost:8080

Alternative, if there's no need for a persistent db, on the Startup.cs, change the ConfigureServices() function for the following:

public void ConfigureServices(IServiceCollection services)
        {
            //Add context and use sqlserver
            services.AddDbContext<DocWordContext>(opt =>opt.UseInMemoryDatabase("DocWords"));

            services.AddControllers();
        }

How to access

For Simplicity sake, http was used instead of the now standard https where SSL certificate is used.

Because of that, a normal browser can't acess the endpoints. So:

  1. Install Postman or similar
  2. Disable SSL by doing: File> Settings> General>SSSL certificate verification> OFF
  3. (Optional) Import the PribDocs.postman_collection.json file to postman.
  4. Use the api the endpoints in here

wordstats's People

Contributors

donhaul 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.