Skip to content

Course Project using NodeJS and EJS Template to build yelpCamp Project

Notifications You must be signed in to change notification settings

NawafSwe/YelpCamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YelpCamp Project

Description:

Yelp camp project is a web application that was developed using MEN stack using MongoDb and express, Nodejs ,furthermore bootstrap3 for styling allows the user to:

  1. Create Account and use it to utilize the website like creating a campgrounds and adding comments to a campground
  2. Add and remove, edit Campgrounds,
  3. Add and remove, edit Comments

user can add create campground with a price and give it a comment and description and an image, also a comments can be added to particular campground

Models:

There are three models are used listed below:

  1. User, where the user has the following attributes:
    • username
    • email
    • password
    • resetPasswordToken
    • resetPasswordExpires
  2. Campground, where the user has the following attributes:
    • name
    • image_url
    • description
    • comments
    • user
    • price
  3. Comment, where the user has the following attributes:
    • author
    • text

Strategies:

Front End Process

The front end 'client side' I have used ejs to make the connection between the server and the front-end more easier and reasonable. where we can get the data from the data base and pass it easily to the ejs file and use it. for more information how ejs works,syntax please visit ejs tutorials.

Back End process

the backend end 'server side' was developed using nodejs and mongodb and using RestFul routes concepts in naming the routes all the code are well commented and documented for more information about how RestFul routes please visit RestFul Routes.

Privacy

The package Passport was used to do the authentication process and hashing the passwords of the users, for more information about the package passport please visit here

Getting started:

Note:

this project is running locally using mongodb

  • before starting make sure that you have node installed in your machine and mongodb
  • open the terminal in the root directory and run npm install to install all the packages required to run this project on your local machine
  • finally in the terminal run the command nodemon and mongod to get the database and the app running on port 3000 feel free to change the port number!

About

Course Project using NodeJS and EJS Template to build yelpCamp Project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published