An open API service indexing awesome lists of open source software.

https://github.com/ztf666/urwcc

Web-coding-challenge
https://github.com/ztf666/urwcc

nearby-shops oop-php php

Last synced: 7 months ago
JSON representation

Web-coding-challenge

Awesome Lists containing this project

README

          

### PRESENTATION

```
This is an app developed for a web coding challenge
sadly i didn't reach the final phase because of my 🤡'NoT sO gOoD aPpRoAcH'🤡
_The web app is developed using_

PURE OOP PHP (no framework included);
BOOTSTRAP;
MYSQL;
JAVASCRIPT;
GOOGLE PLACES API (javascript SDK);
```

## **STRUCTURE OF THE FOLDERS**

```
[''
|-- API',
' | |-- Init.js',
' |-- back',
' | |-- Classes',
' | |-- Athentification.php',
' | |-- connexion.php',
' | |-- DAO.php',
' | |-- disconnect.php',
' | |-- LikeDislike.php',
' | |-- savePlaces.php',
' | |-- submit.php',
' | |-- MODELS',
' | |-- Place.php',
' | |-- User.php',
' |-- DBFolder',
' | |-- urcc.sql',
' |-- front',
' | |-- index.php',
' | |-- Login.php',
' | |-- NearbyShops.php',
' | |-- PreferredShops.php',
' | |-- css',
' | | |-- default.css',
' | | |-- login.css',
' | | |-- style.css',
' | |-- img',
' | | |-- icon_rest.png',
' | |-- js-scripts',
' | |-- login-script.js',
' |-- README',
' | |-- log.txt',
' |-- ScreenShots',
' |-- 1.png',
' |-- 2.png',
' |-- 3.png',
' |-- 4.png',
' |-- 5.png',
'' ]
```

## **HOW TO USE IT** :

```
-IMPORT THE MYSQL DB FILE FROM : DBFolder
-CHANGE THE DB NAME,USER,PWD IN THE /BACK/CLASSES/CONNEXION.PHP FILE .

-FIRE UP YOUR APACHE SERVER.

-LOGIN USING EITHER THE PRE DEFINED LOGIN & PWD : SPOCK , KIRKSUCK || ZTF , XCFV || MARCELINE , MARCELINE<3

-ONCE LOGGED IN , YOU'LL BE REDIRECTED TO THE INDEX PAGE , CLICK ON THE FETCH NEARBY SHOPS .

-ONCE DONE ,YOU'LL BE REDIRECTED AGAIN TO NEARBYSHOPS PAGE

**THERE YOU CAN** :

-LIKE : like a shop and add it to your favorits .

-DISLIKE(1) : the shop won't be visible until 2h has gone by .

-DISLIKE(2- in preferred shops): dislike an already liked shop to make it disapear from your list .

-####PLEASE CONSIDER REALOADING YOUR NEARBYSHOPS FOR BETTER USE OF THE FUNCTIONALITIES , SINCE THIS IS AN ASYNCHRONOUS APPROACHE I USED

-CLICK HOME TO REFRESH YOUR NEARBY SHOPS.

-THE SHOPS WILL AUTOMATICALLY BE REMOVED ONCE YOU LOGGED OFF , SO IF YOU CHANGE YOUR LOCATION JUST SIGN OFF && SIGN IN OR RE-FETCH NEARBY SHOPS ONCE MORE .

-THE SHOPS UNLIKED IN THE NEARBY SHOPS PAGE WILL AUTOMATICALLY BE VISIBLE AFTER 2H .
```

![Screenshot](ScreenShots/1.png)
![Screenshot](ScreenShots/2.png)
![Screenshot](ScreenShots/3.png)
![Screenshot](ScreenShots/4.png)
![Screenshot](ScreenShots/5.png)

###### for any further explanation please contact me @ZTF666@protonmail.ch

# PS

due to google's new bs about the places api and billing policy , you'll have to change the api key on the following file :

```
index.php .
Line 23 .
```