Skip to content

sward42/customer-service

 
 

Repository files navigation

Bangazon Customer Service

Dependencies

To ensure that the Bangazon Customer Service App works as intended make sure that you have the following dependencies and technologies on your local machine

  • dotnet

If you need to download dotnet onto your local machine, visit Microsoft's Documentation

  • DB Browser for SQLite

If you need to download DB Browser onto your local machine, visit DB Browser's Documentation

Installation OSX/UNIX

Clone or fork the project. Navigate to where the project is saved on your machine. For all of the following commands enter them into your bash terminal to ensure that the application is installed correctly

This command sets the environment for your local copy of the application to development mode.

export ASPNETCORE_ENVIRONMENT="Development"

Determine which directory you would like to store your database file and create a blank file with the following commands.

touch "/path/to/bangazon_Incident_DB.db"

On initial installation of the Banagazon CLI application you must set an environment variable to your local database.

export BangazonWeb_Db_Path="/path/to/bangazon_Incident_DB.db"

This project depends upon the database files created by two other projects.

  1. Clone or download Team Charles's Initial Site and follow the instructions in the README.
  2. Clone or download Team Charles's Workforce Management App and follow the instructions in the README.

Open your bangazon_Incident_DB.db file in DB Browser, select the Edit Pragmas tab and make sure that the Foreign Keys checkbox is unchecked. Open Data/tables.sql from the Execute SQL tab of DB Browser, erase every reference to Order, Employee, Department and Customer and execute the statement. Do the same action with Data/populate.sql. In DB Browser, click Write Changes to commit your changes to the database.

Navigate into the src/customer-service folder.

cd src/customer-service

Once your local variables have been set run the following commands to start.

dotnet restore
dotnet run

Installation Windows

Clone or fork the project. Navigate to where the project is saved on your machine. For all of the following commands enter them into your bash terminal to ensure that the application is installed correctly

Determine which directory you would like to store your database file and create a blank file with the following commands.

touch "/path/to/bangazon_Incident_DB.db"

This command sets the environment for your local copy of the application to development mode.

$env:ASPNETCORE_ENVIRONMENT="Development"

On initial installation of the Bangazon CLI application you must set an environment variable to your local database.

$env:BangazonWeb_Db_Path="/path/to/bangazon_Incident_DB.db"

This project depends upon the database files created by two other projects.

  1. Clone or download Team Charles's Initial Site and follow the instructions in the README.
  2. Clone or download Team Charles's Workforce Management App and follow the instructions in the README.

Open your bangazon_Incident_DB.db file in DB Browser, select the Edit Pragmas tab and make sure that the Foreign Keys checkbox is unchecked. Open Data/tables.sql from the Execute SQL tab of DB Browser, erase every reference to Order, Employee, Department and Customer and execute the statement. Do the same action with Data/populate.sql. . In DB Browser, click Write Changes to commit your changes to the database.

Navigate into the src/customer-service folder.

cd src/customer-service

Once your local variables have been set run the following commands to start.

dotnet restore
dotnet run

About

Bangazon Customer Service Incident Management Program

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%