chicken-sloths / bangazon-api-sprint1

API for a mock Amazon + Etsy platform providing developers access to the company's employee & product data
0 stars 0 forks source link

bangazon-api-sprint1

Bangazon Corp API - Chicken Sloths Sprint 1 - NSS Day Cohort 23

Welcome to the bangazon-api-sprint1 wiki!

API Documentation

More information can be found on the Bangazon Wiki.

API Access Paths & Table Information

ERD

Contribution Guide

Helpful Contributing Documentation

  1. Fork to your profile
  2. Git Clone
  3. Run npm install

Original Reqs:

Bangazon Orientation API

Requirements

  1. Using Express you will be building the initial, open API for Bangazon.
  2. Expose the following resources in your API.
    1. Customer
    2. Order
    3. Product
    4. Department
    5. Computer
    6. Training Program
    7. Product Type
    8. Payment Type
    9. Employee

The initial version is for internal consumption only, so it does not require permissions to access, or manipulate, any resources.

Resources

As you progress through the project, your manager will discuss some of these topics with you.

Creating a database

To build the API, you will need a database for it to read from and write to, with customer information, payment data, a collection of products, and a record of customer orders.

Start with a robust ERD that clearly establishes the relationships between your tables, and populate each entity with the rows needed to organize your data efficiently. Only then should you move on to creating your tables in a SQLite document.

Requirements

Use SQLite and the sqlite3 module to create your tables. These tables are required:

customers This table will store the following information

payment_options This table will contain the following information

products This table will store the following information

orders This table will store the following information

order_line_items This table will store the following information

Plan to leave enough time to test drive your db with as many queries as you can. Soon we will dive into writing tests that confirm that we can read and write to our databases properly. For now, just write out a series of queries like the ones you worked through in the previous exercises and use the DB Browser app to put your tables through their paces.