Giter VIP home page Giter VIP logo

oraclecms_car-management-system's Introduction

Note: The commit history would show that I used the words UsedmiDNT and Des in the past. These are ciphered words I used to prevent any other candidates from finding this repository.

The original word's vowels were substituted to the next vowel, and the consonants were substituted to the next consonant. For example: the original word Hello would be converted into Jimmu using this method.

This information is made available for the actual assessors of OracleCMS as proof that I worked on the task they requested.

Car-management-system

A Car management system provided as a Coding Task from OracleCMS. This project uses .NET Core with Swagger to create a web API

Usage

Running the Web API

  1. Clone this Repository
  2. Open WebApi/CarDeals/CarDeals.sln in Visual Studio (preferably version 22)
  3. Press CTRL+F5 to run the web API

Using the Svelte UI

  1. Make sure that the Web API is running
  2. Open CarDealersFrontEnd as a root folder
  3. Run the following commands:
npm install # run this only once
npm run dev
  1. Open your browser and paste the following in your URL bar:
http://localhost:5173/

The app should be running now.

Implementation

This project implements authentication to prevent other dealers from retrieving others' data. It does this by encrypting passwords using hashing and a salt.

Upon successful authentication, the user's passwordHash is returned and can be used to get private data related to their account. Currently, it is just their stocks and address, but the data has been designed so that it can be extended to other places.

Sessions have also been implemented as a part of authentication. Every time a user uses the passwordHash provided, the session refreshes, allowing the user to stay online into their account. A session period of 30 minutes has been set as a constant so that it is easy to change in case a change is required.

A demonstration of its usage is made using Svelte.

API Endpoints

The following are documentation on the API implemented for multiple dealers to use.

For a programmatic example of how to use them, check out the api.ts and the prepareDB.ts files

Roadmap

General Goals

  • Define the data model
  • Set up the Web API project
  • Create the database context
  • Create the controllers
  • Create tests
  • Submit code

Stretch goals

  • Make a Svelte UI for it

oraclecms_car-management-system's People

Contributors

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