Skip to content
/ HikeNL Public

Explore and share stunning hiking trails in NL.

Notifications You must be signed in to change notification settings

dyckia/HikeNL

Repository files navigation

Development History

v0.1

  • Initialize npm project
  • Setup express, ejs & body-parser
  • Create landing view
  • Add campgrounds view
  • Add new campground view
  • Create header and footer partials
  • Import Bootstrap (4.3.1)
  • Add nav bar to all page
  • Style the campground view
  • Style the add new campground view

v0.2

  • Connect to MongoDB Atlas
  • Setup Campground model
  • Use compground model in existing routes

v0.3

  • Restful
  • Re-define schema, add description
  • Add view details button on index view
  • Add campground details view

v0.4

  • Refactor app.js, seperate the mongoose models
  • Setup Comment model

v0.5

  • create a seed script to populate data into database

v0.6

  • Update show view to display user's comment
  • Add campgrouds views folder and comments views folder
  • Add NEW route for creating new comment
  • Add new view for submitting new comment
  • Add CREATE route for comment
  • Add add new comment button
  • Style show campground view

v0.7

  • Add authentication related dependencies
  • Define User model
  • Configure passport
  • Add register view
  • Add register route
  • Add login view
  • Add login route
  • Add logout route
  • Prevent user from adding a comment if not signed in
  • Add auth links to navbar
  • Show/hide nav links according to user login status

v0.7.5

  • Refactoring Routes, seperate index routes
  • Refactoring Routes, seperate campground routes
  • Refactoring Routes, seperate comment routes

v0.7.8

  • Associate users and comments
  • Save author's name when a comment is created
  • Diaplay author's name in campground show view

v0.7.9

  • Modify campground schema to include author info
  • Prevent an unauthenticated user from creating a campground
  • Save user's informtion to newly created campground
  • Display user's name on campground show view

v0.8.0

  • add edit button to campground show page
  • add edit route for campgrounds
  • add campground edit view
  • add update route for campgrounds

v0.8.2

  • add delete button to campground show page
  • add destroy route for campgrounds

v0.8.3

  • fix the bug that when a campground is deleted, its associated comments are not removed

v0.8.5

  • add authorization feature so that user can only edit/delete the campgrounds he/she created
  • hide/show edit and delete button according to user's ownership

v0.9.0

  • add edit button to comment
  • add edit route for comments
  • add comment edit view
  • add update route for comments

v0.9.2

  • add delete button to comment
  • add destroy route for comments

v0.9.5

  • add authorization feature so that user can only edit/delete the comments he/she created
  • hide/show edit and delete button according to user's ownership

v0.10.0

  • refactor authentication and authorization middlewares

v0.10.1

  • fixed the bug where when a comment is deleted, its refernce is not removed in the campground document

v0.11.0

  • install and configure connect-flash
  • include flash message in header template

v0.11.1

  • add error message for login required operations
  • add error message for unauthorized campground operations
  • add error message for unauthorized comment operations

v0.11.2

  • add success/error messages based on login result
  • add sucess message when a user logs out
  • add signup error message

v0.12.0

  • style landing page
  • add slideshow animation

v0.12.5

  • style login page
  • style signup page

v0.12.6

  • add sucess message for signup

v0.12.7

  • untrack node_modules folder

v1.0.0

  • add start script
  • deploy web application to heroku

v1.0.1

  • change port number to environment variable

todos

  • add price information in campground schema
  • show relative time in comments
  • improve mobile experience
  • better error handling
  • add location information
  • redesign show page

Description

Follows RESTful API

About

Explore and share stunning hiking trails in NL.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published