As an avid Salesforce enthuastist, I want to create a place where we can share posts, vote and comment all things Salesforce. Let's grow together and continue to spread the well-known Ohana culture here!
Visit the Heroku-based* website: Trailblazing Pro
*This is made possible with Heroku with JASWSDB MySQL add-on installed.
Tip: install these packages via terminal in the root directory to be able to use this application:
NPM
npm init
MySQL
npm i --save mysql2
dotenv
npm i dotenv --save
bcrypt
npm i bcrypt
express
npm i express
express-handlebars
npm i express-handlebars
express-session
npm i express-session
Sequelize
npm i sequelize
connect-session-sequelize
npm i connect-session-sequelize
Want to install all at once?
npm init -y
first then enter the next code:
npm i mysql2 dotenv bcrypt express express-handlebars express-session sequelize connect-session-sequelize
Then update the package.json file with: "start": "node server.js"
Make sure to follow the instructions below to use the database:
- In the terminal in the root directory, start MySQL:
mysql -u root -p
and enter your MySQL password - Create database tables:
source db/schema.sql
- Quit MySQL:
quit
- Seed tables with data:
npm run seed
- Start the program:
node server.js
- Use Insomnia Core App and "http://localhost:3001" and have fun playing around with it!