Giter Site home page Giter Site logo

arturobp3 / product_catalogue Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 6.41 MB

Final project made for my Advanced Databases university subject. To that end, I've used the next technologies: HTML, CSS, JavaScript, JQuery, AJAX, PHP, MySQL, MongoDB and XML

PHP 81.29% CSS 11.65% Hack 0.51% JavaScript 6.55%
php mysql mongodb xml javascript ajax jquery html5 css3 products product-catalog

product_catalogue's Introduction

Product Catalogue

The purpose of this project was to use different types of databases in a real software example that people may use everyday. Therefore, I made a web-app similar to Amazon where you can: login and register, purchase products and leave comments below them, check what you have ordered and, among other things, use a search engine which shows suggestions of products while you are typing on it.

Steps to use the application:

You have to make sure that both ports (in MongoDB and Robo 3T) are the 27017 one

Your MongoDB version must match that of PHP. You should also pay attention to architecture and Thread Safe. To that end, use the info.php file which I provided in this repository. Then, copy the 'php_mongodb.dll' file and paste it into the path xampp/php/ext. Now, edit 'php.ini', which is located in 'xampp/php', and add the next statement:

extension=php_mongodb.dll

Execute mongod.exe

Now, execute mongo.exe. Here, execute the following commands:

use Product_Catalogue

This command will create our new database

db.createCollection("InfoProducto")

and this one will create the necessary collection for comments.

Open the system console (CMD):

Find the 'bin' folder in the MongoDB Server path and type the next command:

mongoimport -h localhost:27017 --db Product_Catalogue --collection InfoProducto --file C:\xampp\htdocs\Product_Catalogue\backend\MongoDB\MongoDB_database.json

The xampp folder is supposed to be located at C:\

This command will import the necessary documents into our database.

Open the XAMPP control panel and start Apache and MySQL

Import in phpMyAdmin the SQL files provided in this repository

Try my aplication typing in the browser the next URL

localhost/Product_Catalogue/frontend/index.php

product_catalogue's People

Contributors

arturobp3 avatar

Stargazers

 avatar

Watchers

 avatar  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.