A simple search tool for quick recipe information.Here is how the application appears and functions.
This project requires Node.js and other dependencies
Navigate to the directory you would like to use using the CLI and then clone this repository:
git clone git@github.com:wolfgarb/pantry-hacker.gitCreate .gitignore to include the following:
node_modules
.env
.DS_Store
package-lock.json.env will hold your sensitive information.
DB_NAME='pantry_hacker_db'
DB_USER='root'
DB_PW='YOUR_PASSWORD_HERE'Open your IDE and use these commands to install all the necessary packages:
npm i bcrypt mysql2 dotenv express sequelize node
connect-session-sequelize express-handlebars express-session handlebars
npm initnpm init will create your package.json file.
Make sure package.json includes the seed in your scripts:
"scripts": {
"start": "node server.js",
"seed": "node seeds/index.js"
}Login to MySQL with your credentials.
mysql -u root -pIn the MySQL terminal, start the database
USE pantry_hacker_db;Go back to your main terminal or VS Code powershell and enter
npm run seedsFinally, start the server from the command line:
npm startThis project used Jest for testing
Have something you'd like to add?
Feel free to contact me via email!
