Skip to content

laurawarren88/fullstack-node-book-reviews

Repository files navigation

Book Review Website ๐Ÿ’ป

โญ๏ธ Overview

This project uses frontend and backend logic to compile a media review application for books.

It uses:

๐Ÿ”น NodeJS and Express frameworks
๐Ÿ”น EJS for templating
๐Ÿ”น MongoDB for the database storage
๐Ÿ”น Filepond to help store and input pictures

โš™๏ธ Prerequisites

In order to run this application you will need to have the following:

๐Ÿ”ธ MongoDB account
๐Ÿ”ธ NodeJS installed 
๐Ÿ”ธ VS code installed

๐Ÿพ Step One

Change your directory to where you wish to run this script and store the cloned repository:

cd <filename>

๐Ÿพ Step Two

Clone the repository from github and then move into the new directory.

git clone https://github.com/laurawarren88/media_review_app.git
cd media_review_app

๐Ÿพ Step Three

Take a look ๐Ÿ‘€ around the file ๐Ÿ“‚ structure and see what is happening with VS code.

code .

You will need to add a .env ๐Ÿคซ file into the file tree to store the necessary information to run the script.

I'll walk you through it:

touch .env
vim .env

In the file you need to include your information โ„น๏ธ into the following variables:

DATABASE_URL=
NODE_ENV=development
SECRET=

After the '=' sign for DATABASE_URL input the connection for your MongoDB, it will look something like this: mongodb+srv://:@cluster0.ib6l0.mongodb.net/<cluster_name>?retryWrites=true&w=majority&appName=Cluster0

For the secret variable input anything you like.

๐Ÿพ Step Four

Install the packages from package.json

npm start

๐Ÿพ Step Five

Once you have the packages installed, set up your enviroment variables and are connected to your MongoDB you can run the application.

nodemon run start

This should then allow you to run the application in your web browser in the following location: http://localhost:3000.

From here you can set up a user and register and account and sign in.

Once you are signed in you can add reviews to books.

If you need to add books you will need to set up an Admin account in your MongoDB and set the user to isAdmin: true this will enable that user to add, edit and delte books.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published