Skip to content
/ Maps Public

MAPS is a website where user can store and share their list of maps and each map includes marker points. The website also includes a search bar where the user can search location and then insert points onto the map.

Notifications You must be signed in to change notification settings

vivienfan/Maps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MAPS

MAPS is a website where user can store and share their list of maps and each map includes map_points. The website also includes a search bar where the user can search a location and then insert a map point.

Final Product

Try it out here!

  1. When the guest user just visits the page, the user can browse the website and the user can only view images, lists, and maps but not able to delete or edit.

"Main Page" "Accessing list as Guest user."

  1. The Guest can also see other people's profiles such as bob. You can visit this page by visiting the URL link "http://localhost:8080/profiles/bob" where bob is the username. Try visiting "Top Stadiums" you will find that you cannot access the Top Stadiums list because the list is private.

"Visiting Bob" "Can't Access"

  1. The user can register by clicking the register button from the nav bar.

"Register"

  1. In the home page user can favorite a list and the button toggles to green and the number iterates.

"Favorite"

  1. When you click menu, you can see there is a dropdown of the two buttons for logging out and your profile.

"Menu Dropdown"

  1. If you clicked "Your Profile" button, it will direct you to your profile page where you are able to create a new list. You can provide the title and description and you can select whether you want to publicly show the list or make it private where only its owner and its contributors can see it.

"Your Profile"

  1. When you click the button to create a new list. It will direct you to a page where you can create a map. Put the title and description and then click "add map" button.

"Creation of list"

  1. You can use the search bar to find the location where you want to add a point.

"Search Bar"

  1. Then you can use the cursor to click anywhere on the map where you want to put a point on. On click the modal appears and the user can insert the title, description, and a url link image and then click button 'add' to insert the point.

"Map point"

  1. Below the map, it should show the newly created map_points's title, description, and image.

"Creation of the Map Point"

  1. Notice at the bottom of the map_point image, there are two buttons for editing and deleting the map. When the user clicks on the edit button, the modal appears and then the user can edit the map point information.

"Edit delete buttons"

  1. The User can also select the point to reveal more information about that point.

"Point Information"

  1. The User can also see the history by clicking the "history button" at the top right hand corner to see more information on who created the map and the activity for that particular map.

"History Button"

  1. Suppose you want to add a contributor but you can only do that if you go back to the lists page. You can go back to the lists page by clicking "Back to list" page at the top left hand corner and it will direct you to its "lists" page. then the user can proceed to add a contributor to the list at the right pane of the page. In this screen shot, the user is adding bob as a contributor.

"Adding contribution"

  1. When bob logs in and goes to his profile page. Bob can see that his "Bob's contributions" list is updated. "Bob Profile"

  2. Since bob now has access to the example list, he can also create a new map point in map "example1"

"Bob creating new map point"

  1. And when Bob clicks on the history button, bob can see that the history is updated and view the activity for this map.

"Bob clicking history button"

  1. Bob has a private list called "top stadiums" and wants to allow example to edit the map. He can do that by adding "example" user as a contributor.

"Private top stadium"

  1. When example logs in, he can go to their own profile page to see that he is now the contributor to the private list and now he can access this list.

"exampleview"

Getting Started

  1. Install dependencies: npm i
  2. Create a .env file at the root directory of this project, and define the following variables: DB_HOST DB_USER DB_PASS DB_NAME DB_SSL DB_PORT GOOGLE_MAP_API_KEY
  3. Fix to binaries for sass: npm rebuild node-sass
  4. Run migrations: npm run knex migrate:latest
  • Check the migrations folder to see what gets created in the DB
  1. Run the seed: npm run knex seed:run
  • Check the seeds file to see what gets seeded in the DB
  1. Run the server: npm run local
  2. Visit http://localhost:8080/
  3. In order to get the google search bar working. Please add the instruction in the .env file with your own googple api key.

Dependencies

  • Node 5.10.x or above
  • NPM 3.8.x or above
  • GOOGLE API KEY and it should be stored in the .env.
  • bcrypt 1.0.2
  • body-parser 1.15.2
  • dotenv 2.0.0
  • ejs 2.4.1
  • express 4.13.4,
  • knex 0.11.7
  • knex-logger 0.1.0
  • morgan 1.7.0
  • node-sass-middleware 0.9.8
  • cookie-session 2.0.0-beta.1
  • pg 6.0.2
  • method-override 2.3.8

About

MAPS is a website where user can store and share their list of maps and each map includes marker points. The website also includes a search bar where the user can search location and then insert points onto the map.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •