Bhaikko / RecipeBook

A web-application built with vanilla js and nodejs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Recipe Book

A Website for sharing Recipies among Users.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Before running the server on your local machine, following npm packages must be installed in the same directory where you have cloned the project.

requirements

You can install them manually or run the following command

  npm install

Database

  • mysql - For storing Users, Recipes, etc tables.
  • mongodb - For storing Sessions.

Database Usage

For mongodb, excute the following commands in root directory of RecipeBook Folder

  cd Site/database/sessions
  mongod --dbpath=./ --port=5000

Note: The port above can be whatever you assign

For mysql, To create a database

  create database "recipeBook";
  create user "recipeBookAdmin" identified by "123456";
  use gamerparadise;
  GRANT ALL PRIVILEGES ON recipeBook.* to "recipeBookAdmin";
  FLUSH PRIVILEGES;
  

Note: These are default credentials hardcoded inside RecipeBook/Site/database/database.js and can be changed. All the above commands must be executed as root user of mysql

Running The Server On Your Machine

  cd ./Site
  node server.js

*Note: The default port, the website runs on is 4000 and can be changed in server.js"

Screenshots

Landing Page

User Homepage

Profile Page

Libraries

The site uses following libraries built by other people.

About

A web-application built with vanilla js and nodejs


Languages

Language:JavaScript 59.9%Language:CSS 23.2%Language:HTML 16.9%