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)
- Donwload the last version for dotnet in
https://dotnet.microsoft.com/
- Donwload Visual Studio 2022 in
https://visualstudio.microsoft.com/es/launch/
- Donwload Visual Studio Code in
https://code.visualstudio.com/
-
Clone the repo
git clone https://github.com/LuYaSC/BillingDemoNexion
-
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
-
Change file appsettings.json Local Database if you use Local Database use commented line, only change DataSource
-
Migrations in VisualStudio
update-database -Context DBContext
-
Migrations in VsCode
dotnet ef database update --context DBContext
-
Execute script: BDBills.sql
/Optional/ If you have problems with migrations (Only for problemas with migrations docker or local) Execute BDBills Complete Script.sql
- Execute
dotnet run
this command start the services on port 5000 or 5001, also can use https://localhost:5001/swagger/index.html
Execute unit test for all logic business
-
User the command
dotnet test
-
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
-
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
- Users
- States
- Currencies
- Services
Note. You can also use the swagger found in the path https://[service]/swagger/index.html
Distributed under the MIT License.
Luis Jose Jimenez Peña - @LuYaSc - [email protected]
Project Link: https://github.com/LuYaSC/BillingDemoNexion