Skip to content

Latest commit

 

History

History
78 lines (67 loc) · 7.74 KB

CodeLouisville.md

File metadata and controls

78 lines (67 loc) · 7.74 KB

To clone, test, and run the console, web, and API programs on your local drive, do the following:

  • create a new folder, such as "test", then run these commands

  • cd test

  • git clone https://github.com/hellums/ePortfolio.git

  • cd ePortfolio

  • dotnet test ePortfolio.sln

  • dotnet run -s ePortfolio.sln --project ePortfolio.csproj

  • In a browser or tab, enter the URL link listed in the dotnet output (or click https://localhost:7257)

  • To stop the ePortfolio program, return to the command line and press Ctrl-C once or twice

  • To cleanup when done, cd back to where you created the test folder and remove it (and ePortfolio) using rmdir /s /q test (on Windows) or rm -rf test (on Mac or Linux)

You can also use Visual Studio to run the programs and associated tests from the IDE and automate the browser launch, by loading the ePortfolio.sln file in that folder (after cloning), and remove the folders afterwards from File Explorer (on Windows) or Finder (on Mac)

Code Louisville Requirements List (for ePortfolio project)

RECOMMENDATION: Shift-click or Ctrl-click on links to bring them up in new windows or tab

  • Project includes a README file that explains the following:

  • A one paragraph or longer description of what your project is about

  • Any special instructions required for the reviewer to run your project

  • Implement a “master loop” console application, including choosing to exit the program (in separate repo)

  • Create at least one class and object instance with populated data used in the application

  • Create an additional class which inherits one or more properties from its parent

  • Create and call at least 3 functions or methods: 1. 2. 3. 4. , at least one of which returns a value used in the application

  • Create a dictionary or list, populate it with several values, retrieve at least one value, and use it in your program

  • Implement a log that records errors, invalid inputs, or other important events and writes them to a text file

  • Read data from an external file, such as text, JSON, CSV, etc and use that data in your application

  • Connect to an external/3rd party API and read data into your app (separate repo)

  • Build a conversion tool that converts user input to another type and displays it (ex: converts cups to grams)

  • Connect to an external/3rd party API and read data into your app: (In printworthy bookmarks private repo due to API key) _mongoClient = new MongoClient("mongodb+srv://printworthy")

  • Create 3 or more unit tests for your application

  • Use a LINQ query to retrieve information from a data structure (such as a list or array) or file (methods below from Printworthy, private repo): public string Delete(string referenceID) { _referenceTable.DeleteOne(x=>x.Id==referenceID); return "Deleted"; }

      public Reference GetReference(string referenceID)
      {
          return _referenceTable.Find(x=>x.Id == referenceID).FirstOrDefault();
      }
    
      public List<Reference> GetReferences()
      {
          return _referenceTable.Find(FilterDefinition<Reference>.Empty).ToList();
      }
    
      public void SaveOrUpdate(Reference reference)
      {
          var referenceObj = _referenceTable.Find(x=>x.Id == reference.Id).FirstOrDefault();
          if (referenceObj == null)
          {
              _referenceTable.InsertOne(reference);
          }
          else
          {
              _referenceTable.ReplaceOne(x => x.Id == reference.Id, reference);
          }
      }
    

Code Louisville Requirements List (for console project)

RECOMMENDATION: Shift-click or Ctrl-click on links to bring them up in new windows or tab