A Node. js Web Application
See this app in action at http://abhagsain-camping.herokuapp.com/
I've added a demo user Hitman on the login page, so you don't have to sign up to test the functionality.
Make sure you have these things installed
git clone https://github.com/abhagsain/yelpcamp.git
after that run command
npm install
this will install all the necessary packages that you need to run the application.
I've used dot.env to store the environment variable, So you need to create a .evn file once you clone or download the repo.
paste below code into that file
# if you're using MLAB replace variable with your MLAB url
DATABASEURL = mongodb://localhost:27017/[your_database_name]
-
Authentication
-
Users can sign up or login using username and password.
-
User can not submit campgrounds if they are not logged in.
-
-
Authorization
- User can only modify campgrounds created by them.
-
User Profile
- Every registered user has profile where all his submitted campgrounds are shown.
-
Basic Functionality
-
Add Name, Image and Description to the campground.
-
Create, Update, Delete the Campground.
-
Add comments to campgrounds.
-
Flash Important messages to warn or gree the users.
-
Responsive Web design.
-
-
Visual Studio Code I'm in love with this :P
-
See how to use Emmet in VSCode. This CheatSheet might be helpful.
Change default shell in VSCode to git bash if you're using windows and know some Linux commands. Don't know how to do it? See here
I'll be adding features as I learn more.
A Big Thanks to Colt Steele for all the knowledge.