Giter Site home page Giter Site logo

yelpcamp's Introduction

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!

yelpcamp's People

Contributors

dependabot[bot] avatar nawafswe avatar prince2nawaf avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.