Skip to content

giripriyadarshan/sdp-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Software Development Practice (SDP) Project

Problem Statement

Online Retail Management System — A person can browse the offerings anonymously but to make a purchase they must create an account. The customer will provide their information (delivery location, payment information etc … can have multiple). A customer can purchase one or more items at a time & in different quantities. There are different types of items for sale & based on the quantity ( or other factors) the price of the item may be discounted. Bills will be generated & the customer must pay at time of order. The items can be sourced from multiple suppliers. Think Amazon or any other online retailer.

Libraries Used for the Backend

Backend Setup

  1. Clone the repository
  2. Navigate to the api-server directory
  3. Setup the .env file in the api-server/ with the following variables and edit the values accordingly
    DATABASE_URL=postgresql://username:password@uri_to_the_instance/database_name
    PORT=8088
    PASSWORD_SECRET="passwords@rePassw0rd1ng"
    TOKEN_SECRET="T0k3me@ser1ous1y"
    SMTP_USERNAME="contact@domain.com"
    SMTP_PASSWORD="Pr3ttyStr0ngP@ssw0rd"
  4. Run cargo run to start the server

API Documentation

The API documentation can be found at http://localhost:$PORT/ after starting the server

Database Schema

The database schema can be found at ./schema.sql file

Graphql Schema for reference

Please check the ./schema.graphql file for the graphql schema

For frontend please check @prashantprakashhh's repository list

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages