Skip to content

FabioMGiacomini/Recipes_App

Repository files navigation

A Recipes App that works with NodeJS and MongoDB

Description

You can do any CRUD (create, read, update, delete) operation. The app follows the MVC schema to have a cleaner structure

Signup or login to enter the app

Auth system available, realized with passport module and strategies

How to start

The only thing you need is an account on MongoDB Atlas (it's free) and a username and password to start. To sign in go here https://account.mongodb.com/account/login

Create a database and a user on MongoDB.

Once you have your credentials on MongoDB, create a new .env file in the same folder of index.js with this string

ricette_uri = "mongodb+srv://USERNAME:PASSWORD@clusternodejs.hbaowix.mongodb.net/DB_NAME?retryWrites=true&w=majority"

and write your user name and password and the db name in it

There's no need to create a collection, the schema model creates that for you to avoid errors.

Front Page

The front end is rendered with the template engine EJS

The views folder contains pages and partials to create the site and to manage functions and parameters

Login Page

Added a login page. You can view the homepage and all of the recipes as a guest but to modify or insert e new one you have to sign in.

About

A recipes app that works with NodeJS and MongoDB

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published