Skip to content

chris-larham-1983/codecademy-e-commerce-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents


General Information

This is my solution to the Codecademy portfolio project entitled e-commerce application REST API, wherein I had to design a fully-functioning e-commerce application REST API that allows users to perform various CRUD operations such as registering for an account, browsing products etc.

The API had to satisfy the following requirements:

  • be built using Express, Node.js, and Postgres
  • allow users to register and log in via the API
  • allow CRUD operations on products
  • allow CRUD operations on user accounts
  • allow CRUD operations on user carts
  • allow a user to place an order
  • allow CRUD operations on orders
  • use Git version control
  • be developed locally
  • be documented using Swagger
  • be deployed live to Heroku using the command line

Project Structure

I created 23 endpoints in order to fulfil the logical requirements of this project. These endpoints are thoroughly documented at the URL defined in the Using the API section at the bottom of this README.md. The endpoints communicate with a Postgresql database composed of five tables: customers, addresses, products, cart, and orders.

When a user completes the registration process, a record is inserted into the 'customers' and 'addresses' tables. The user can then log in, add products to their cart, and finally checkout. When the user completes the checkout process, their cart is cleared, and their order is added to their order history. The user can then log out.


Entity Relationship Diagram

Entity Relationship Diagram


Technologies

I wrote this e-commerce application REST API using the following technologies:

  • JavaScript
  • Express
  • Node.js
  • Postgres
  • Git and GitHub
  • Command Line
  • Entity Relationship Diagram

Using the API

This e-commerce application REST API is documented and able to be tested at:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published