Git Product home page Git Product logo

inverviewtest's Introduction

InterviewTest Project

Set up instructions:

Project set up

The project needs .NET CORE 6 and SQL server to run. InterviewTest.Api is the project api that have to be set as the start up project.

Database set up

The project: InterviewTest.Migrations, contains the migrations to create the tables in the database. If the script takes long to run it might be due to permissions issues, in this case just create the data base manually then run the migrations. The current databse name is: InterviewTest, it can be changed inside the configuration file. This migration project is a console application which can be run independently.

Seeding databse

After creating the databse and configure the project, the tests in InterviewTest.Test cam be run, and the databse will be seeded with test data.

Project Organization

  • InterviewTest.Api

Entry point application

  • InterviewTest.Common

Holds the dtos and commong classes for the other layers

  • InterviewTest.Data

Serve as the data layer. It contains an implementation of ADO.NET library, and the repositories to comunicate with the database.

  • InterviewTest.Entity

Contains the classes that represent the tables in the databse

  • InterviewTest.Migrations

Contains the scripts to set up the tables for the database. It is a console project, can be run manually

  • InterviewTest.Service

It is a bridge between InterviewTest.Data and InterviewTest.Api. It runs logic and interact with the data in high level details

  • InterviewTest.Test

It contains the tests for the whole application.

Main endpoints

  • POST: /Users. It is a free endpoint to create users. Whe the tests are runs, a user is created like this: email: "[email protected]", and password: "admin". other user can be created.

  • POST: /Security/login. Allow the authentication of the user. It issues a JWT token, which can be provided into swagger and grant access to the other endpoints.

inverviewtest's People

Watchers

Yunior Miguel 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.