Giter Site home page Giter Site logo

meshav / angular-ecommerce-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from michaelparkadze/angular-ecommerce-app

0.0 0.0 0.0 15.39 MB

This is an e-commerce web application based on other popular e-commerce platforms. Built with Angular, Node.js, and MySQL

JavaScript 16.09% TypeScript 42.88% HTML 20.22% SCSS 20.47% Less 0.34%

angular-ecommerce-app's Introduction

Angular Ecommerce Web App

I made this project to learn and understand the basics of both Angular and MySQL. It was not fun at first but once I got the hang of it it was quite pleasant. In addition to Angular and MySQL, this project is built using Ant Design for its UI and SwiperJS for its carousels. The backend is built using Node.js, Express.js, Joi for input validation, and JWT for authentication. I did want to provide a demo link for now there will be instructions on how to set up this project on your local machine.


Functionality

The application allows you to browse the home page for products, check out each of the details of the product and add them to your cart for a later checkout.

Adding products to your cart will make a notification pop up and indicate that the product was added successfully.

You are able to see a preview of the cart on the top bar or even navigate into a more detailed cart page.

The checkout process is a multi-page form that at the end allows you to place an order that will later be shown on the order history page.


Getting Started

The app can be installed by cloning the git repository

git clone https://github.com/michaelparkadze/angular-ecommerce-app.git folder-name

Then cd into both directories and run npm install

cd folder-name
cd backend
npm run install
cd.. // return to folder-name
cd client
npm run install

After the entire installation you need to run the server and the client by running this commands each in its own directory

backend

npm run dev

client

ng serve

Prerequisites

You will need to have node and npm installed. In addition you will need a MySQL server running in order to have full functionality of the application


Environment Variables

Create a folder called env in the root of the backend directory and create a development.env file.

Change DB variables to match your MySQL setup

PORT=5000
DB_HOST='localhost'
DB_USER='root'
DB_PASSWORD=''
DB_NAME='myapp'

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.