CRUD App for No Sugars No Grains health food recipes created by fellow Yettsy Knapp General Assembly SEI6 Denver, CO
Open NSNG Crud app: https://nsngcrudapp.herokuapp.com/
![wireframe image for NSNG recipes] Follow my project management steps on my public Trello site: https://trello.com/b/TGA9a6F5
- One usable model must reach Create route resources: a new recipe must be added to the catalog of recipes
- One usable model must reach Read resources: a recipe must be retrieved and display results
- One usable model must reach Update resources: information about a recipe must be changed
- One usable model must reach Delete resources: remove a recipe from the catalog
The live project can be viewed here: https://nsngcrudapp.herokuapp.com/.
Providing my user a location within the browser to join to have saved nsng recipes for when they are prepping for their next meal.
Site will provide a list of predetermined ketogenic friendly recipes that contain no sugars or grains.
Users will be able to have their recipes listed on their page as well as a way to edit their favorite recipes and save them for later use.
- register as a user on the site
- log in to the site once registered
- add new recipes to the site(once logged in)
- edit pre-created recipes(once logged in)
- create a new recipe(once logged in)
- delete any recipes pre-created(once logged in)
- view a list of pre-created recipes from the database
- each recipe will have recipe: title, author, description, ingredients, and serving size
- see the ingredients for a selected recipe
- read the method for preparing the recipe
const userSchema = mongoose.Schema({
username: { type: String, required: true, unique: true },
email: { type: String, required: true },
password: { type: String, required: true },
recipe: {
type: mongoose.Schema.Types.ObjectId,
ref: 'Recipe'
},
});
const recipeSchema = mongoose.Schema({
title: { type: String, required: true},
author: 'String',
description: { type: String, required: true},
category_type: 'String',
ingredients: { type: String, required: true},
photo: 'String',
serving: 'String',
user: {
type: mongoose.Schema.Types.ObjectId,
ref: 'User',
}
},
);
- Node: npm install dependencies listed in package.json
- MongoDB: database for modern applications
- express JS framework
- Mongoose: straight-forward, schema-based solution to model your application data
- EJS - embedded JavaScript Templating
- Express: Fast, unopinionated, minimalist web framework for node. npm i express
- MVC, models, views, and controllers
- SQL tables and PG Promise
- JavaScript:
- Edamam API: using thrd party API key
- Isomorphic Fetch works with API
- Bcrypt: app uses encryption passwords. npm i bcrypt
- Use of express-session in middleware. npm i express-session
- Heroku: web hosting for my app
- verify to create a .env and .gitignore folder
- Setting up the user to have a favorite recipe section
- Styling to site
- Improving authentication
- intelligent formating for user to add their own comments for recipes they dislike
- This app has been a lot of fun to create as I highly respect the man that introduced me to NSNG (my husband CS Knapp).
- Our family finds the teachings of Vinnie Tortorich to be wonderful and brought us back to enjoying healthy food lifestyles again.
- To learn more about NSNG go to https://vinnietortorich.com/what-is-nsng/