Giter Site home page Giter Site logo

billingdemonexion's Introduction


Demo Bills Backend for Nexion Demo

Built With

You can use the application to create users, currencies, states, services and invoices, you can also create invoices in bulk and pay them

Development with (.Net 5)

(back to top)

Prerequisites

  1. Donwload the last version for dotnet in
    https://dotnet.microsoft.com/
  2. Donwload Visual Studio 2022 in
    https://visualstudio.microsoft.com/es/launch/
  3. Donwload Visual Studio Code in
    https://code.visualstudio.com/

Installation

  1. Clone the repo

    git clone https://github.com/LuYaSC/BillingDemoNexion
  2. Create Docker Container for SQL (Optional), change [Port] for port want to use, with example (Recomended use: 1436 or 1437)

    docker run -d --name develop-sql -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=Password$" -p [port]:1433 -d mcr.microsoft.com/mssql/server:2019-latest
  3. Change file appsettings.json Local Database if you use Local Database use commented line, only change DataSource

  4. Migrations in VisualStudio

    update-database -Context DBContext
  5. Migrations in VsCode

    dotnet ef database update --context DBContext
  6. Execute script: BDBills.sql

/Optional/ If you have problems with migrations (Only for problemas with migrations docker or local) Execute BDBills Complete Script.sql

  1. Execute
    dotnet run

this command start the services on port 5000 or 5001, also can use https://localhost:5001/swagger/index.html

(back to top)

Unit Test

Execute unit test for all logic business

  1. User the command

       dotnet test
  2. Test Methods (Postman) You can import the requests to the postman with the file "Peticions BillAPI.json", you will find the query methods for pending and paid invoices (historical) the method to make the payment of an invoice

  3. you can change the name of url methos for (get, create, update, delete) parameters, the options can use this: https://localhost:5001/api/[options]/Get

    1. Users
    2. States
    3. Currencies
    4. Services

Note. You can also use the swagger found in the path https://[service]/swagger/index.html

(back to top)

License

Distributed under the MIT License.

(back to top)

Contact

Luis Jose Jimenez Peña - @LuYaSc - [email protected]

Project Link: https://github.com/LuYaSC/BillingDemoNexion

(back to top)

billingdemonexion's People

Contributors

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