Mouldy Potates is a CMS-style review site similar to Wordpress, where users can publish their review of any movie and comment on other users’ reviews as well.
Dashboard page with user logged in
- Node js
- XAMPP / MySQL
- MySQl workbench
- Javascript
- Handlebars
- Heroku
- HTML
- CSS
You will not need to install any packages for this app if you are visiting the deployed app.
However, if you wish to use try the app on your local device, you will need to follow the following instructions:
Run npm init -y
to initialise the package.json
and then install the following list of dependencies:
npm i mysql2
npm i express
npm i sequelize
npm i express-session
npm i connect-session-sequelize
npm i express-handlebars
npm i rater-js
npm i browserify
npm i masonry
npm i dotenv
: to make sure sensitive information i.e. password is hidden.
The sequelize package allows us to map our object syntax on our database schemas.
The mysql2 package connects you directly to the database created in the MySQL Workbench and you will need to create the database using the schema.sql file and running the command listed.
Once all the dependencies are installed, you can initialise the application itself by running node server.js
in the command line
One of the biggest challenges during the development of this application was the implementation of rater-js. It was a challenge because we needed the ability to use ‘require’ in the browser, which is not normally supported by default.
In order to work around this issue, we had to use the browserify package to create bundles for each instance of the rater-js package - this was the solution that allowed us to use require in the browser.
We do not have any test packages for this app but always check the error messages within terminals and debug using console.log(s).
This project was created under the standard MIT licence.