Code Monkey home page Code Monkey logo

book-store's Introduction

Book Store

This is a very basic implementation of an online bookstore. It has views for both the owner and the customer. The customer can create a profile, search for books, and add them to a shopping cart to purchase them later. They can also view their cart and look at their order history. The owner can choose to order books for the store and run reports on sales and expenses.

Instructions

To run this locally, you should have a C++ compiler installed. I used g++. You should also have PostgreSQL installed and have a database set up for this specific purpose. In the src/main.cc file, you should update the database name, user name, and password for your database. If you are using the defaults for address and port number, the values there should work. Otherwise, you should edit the address and port number as well.

Database

To get the database ready, there are a series of SQL queries in the SQL directory. These need to be run in a specific order so that they work properly. To make them work, execute the queries in the files in the following order:

  • DDL.sql
  • procedures.sql
  • triggers.sql
  • publisher-queries.sql
  • book-queries.sql
  • author-queries.sql
  • genre-queries.sql

After that is set up, you should be able to run "make" in the main project directory to compile the program. After compilation, you can run it by typing ./bookstore in the terminal (from the project directory). Alternatively, you can type "make run" from the start, which will compile and then immediately run the program.

book-store's People

Contributors

fiftyfivebells avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.