Skip to content

Mini project web application [Java/Spring Boot | AngularJs | MongoDB] NearbyShops

Notifications You must be signed in to change notification settings

timpeace/nearby-shops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 

Repository files navigation

Nearby Shops

This mini project is a solution for this web coding challenge.

Developed on Eclipse (IDE) with Java/Spring Boot (Back-end) and AngularJs (front-end).

Concept

Web application that allows users to see the list of nearby shops, as well as to keep track of their favorite ones.

Features

  • As a User, I can sign up using my email & password.
  • As a User, I can sign in using my email & password.
  • As a User, I can display the list of shops sorted by distance.
  • As a User, I can like a shop, so it can be added to my preferred shops.
  • Acceptance criteria: liked shops shouldn’t be displayed on the main page.
  • [Optional] As a User, I can dislike a shop, so it won’t be displayed within “Nearby Shops” list during the next 2 hours.
  • [Optional] As a User, I can display the list of preferred shops.
  • [Optional] As a User, I can remove a shop from my preferred shops list.

Mockups

mainpage

preferredshops

Requirements on your machine

  • MongoDB must be installed.
  • Wamp or Xampp to run localhost.
  • Eclipse IDE.

Setup the Database

  • To try this application on your localhost, you need first to install this MongoDB dump shops database that contains more than 300 shops, every shop entity contains: name, picture, city, email, location.
  • To import this database, you need to extract the "shops.zip" file that you downloaded.
    Just to make sure, the exctracted folder named "shops" must contains 2 files: shops.bson and shops.metadata.json.
  • On your cmd/terminal console, run "mongod" command to start mongodb server:
mongod

mongod
mongod-2

  • Open a new cmd/terminal console and execute the command below:
mongorestore --db shops path_to_the_extracted_shops_folder

mongorestore
mongorestore-2

  • To check if the shops database was successfully installed, execute:
mongo

mongo
mongo-2

Run the application

To launch this web application, you need to:

  1. Import the "nearbyshops" project in Eclipse.
  2. Make sure localhost server is started (wamp/xamp...).
  3. Make sure mongodb server is started (with "mongod" command).
  4. Run "MainNearbyShops.java" class as java application.
  5. Go to http://localhost:8080

Video Tutorial - How To Setup and Run

IMAGE ALT TEXT HERE

About

Mini project web application [Java/Spring Boot | AngularJs | MongoDB] NearbyShops

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published