Coder Social home page Coder Social logo

cardsapp's Introduction

Cards App

The cards app restful web service demonstrates capabilities to authenticate users with either an Admin or Member role. Admins have the access to all cards created by members. Members can create, update, fetch and delete cards they own. JWT Authentication is used as the default authentication scheme. A quick online demo is available at https://cardsapp-kgwi.onrender.com/swagger. Please note that the page may take as long as 50 seconds to load for the first time due to limitations set on the free tier of the service. Test credentials are provided below;

Admin

Username: [email protected]

Password: Password@123

Member

Username: [email protected]

Password: Password@456

Run Locally

In order to build and run locally, please ensure you have .NET 8.0 SDK installed in your computer. Also ensure that you have Postgres database installed or running in a Docker container.

Clone the project

  git clone https://github.com/CodeLover254/CardsApp.git

Go to the project directory

  cd CardsApp

Populate appsettings.json

  Add the server, user id and password in the ConnectionStrings->Default json element. Ensure these credentials can connect to your postgres DB.
  Add a string of appropriate length (over 40 random characters recommended) in the Jwt->SecretKey json element.
  Populate the AppUsers->Admin and AppUsers->Member elements with usernames and passwords of your choice. Usernames should be email addresses

Restore dependencies

  dotnet restore

Build the application

  dotnet build --configuration Release

Run application

  cd CardsApp.Api/bin/Release/net8.0
  dotnet CardsApp.Api.dll

cardsapp's People

Contributors

codelover254 avatar

Watchers

 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.