Skip to content
  • Daniel Tompkins's avatar
    Added fuctionality to API to read in default data from JSON files. · 792a3f5f
    Daniel Tompkins authored
    On conncecting to the Mongo the API drops all existing collections reads
    in data from 3 JSON data files then recreates and populates the Mongo
    collections.
    
        - authorData.json contains 13 authors
        - genreData.json contains 12 genres
        - bookData.json contains 15 books
    All functionality is contained within src/common/services/mongoose.service.ts
    792a3f5f
Analyzing file…