Code Monkey home page Code Monkey logo

store-frontend's Introduction

StoreFrontend

store-frontend is an angular application as an ecommerce starter project. User can find following features in the app.

Fetch all products from backend
See details of a particular product
Add to Cart
Check out `(Requires user to be Signed in)`
Register
Login/Logout
Check users' orders

Installing Dependencies

Simply, run the following command to install the project dependencies after you have cloned the repository:

npm install

Development server

hostname: http://localhost
PORT : 3000

Running the Application

Run ng serve --port 3000 to run dev server. Navigate to http://localhost:3000/.

The application will automatically reload if you change any of the source files. Make sure you run the backend for this application before running the app.You can find the backend here: Store Front backend.

This will be holding data and user credentials in a postgres database.

Usage Guide

When you run the application for the first time, there will be no products displayed since the database is empty. Click on + Dump Products link in Application Navbar. This will create some products in the database. After that, you should be able to see the products list. Following are some of the steps to use application.

     1. Select a product to see product details.

     2. Select Quantity and Add to Cart.
     
     3. Go to Cart and insert shipping details. (If you click on `Save for next time`, your address will be saved and populated 
        in the form automatically when you visit your cart next time)
     
     4. Click on Checkout. If you are not signed in, it will take you to login page and you should sign in in order
        to perform check out. After login, you will be redirected to checkout page.
     
     5. After your order is placed, you can check it in My orders. (Click on User Avatar and visit `My Orders`)

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run ng test to execute the unit tests via Karma.

Further Reading

This project was generated with Angular CLI To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.

store-frontend's People

Watchers

Toseef Ahmed 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.