Attendance Register Project.
Authors: Christopher, Nathan, Mazen, Lantana.
University Project for SAD Module
Group: Thu 16-18 Group 1
- Install npm
- Install nodejs
- Install Vue.js
- Install MongoDB/Mongosh (same process as outlined in
Week 03 - Lab - NodeJS + Express + Mongoose) - Suggested IDE: VSCode
NOTE: If any of the steps below fail, please find a list of all npm packages we have installed at the bottom of this README.
If a certain version is required, please find the required versions for our project in our package.json files.
Execute your MongoDB server.
Example Command (run inside Powershell): H:\MongoDB\MongoDBServer\bin\mongod.exe --dbpath=H:\MongoDB\MongoDBServer\data --nojournal
NOTE: Slashes conform to Windows standards.
NOTE: Our database is populated when our backend is launched. If data exists, we do not repopulate the database.
NOTE: If database issues occur, you may need to use Mongosh to drop the database.
Example Command (run inside Powershell): H:\MongoDB\MongoDBClient\bin\mongosh.exe
To switch to our database: use Attendancedb
To drop our database: db.dropDatabase()
Ensure you are within the top-level directory.
Example: AttendanceRegister
Execute: npm install
Ensure you are within the frontend directory.
Example: AttendanceRegister/frontend-vue
Execute: npm install
Execute: npm run serve
Which starts the frontend Vue3 framework.
To access the frontend, connect to your localhost: http://localhost:8080/
NOTE: Slashes may be different on your machine if using Windows. (Example path obtained in Ubuntu).
Ensure you are within the backend directory.
Example: AttendanceRegister/backend
Execute: npm install
Execute: npm start
Which starts the back-end Node server.
NOTE: You will need the Mongo Database running on your machine whilst running the backend for it to compile.
NOTE: Slashes may be different on your machine if using Windows. (Example path obtained in Ubuntu).
If you are running Unit tests, run: npm test
These Unit tests are run within: AttendanceRegister/backend
If you are running UI tests, you will be required to use the .SIDE file provided. (found in our .zip upload on Blackboard)
You will need to install the Selenium extension for either Microsoft Edge, Firefox or Chrome.
You will need to select Open an existing project and use the .SIDE file provided.
The default path should be: http://localhost:8080/login by default, if not set.
Any of these packages may be installed with npm install
@vue/cli
express-generator
nodemon
@fortawesome/fontawesome-svg-core
@fortawesome/free-solid-svg-icons
@fortawesome/vue-fontawesome
axios
bootstrap
core-js
jquery
popper.js
semantic-ui-css
vee-validate
vue
vue-flash-message
vue-router
vuex
yup
bcryptjs
body-parser
cookie-parser
cors
debug
express
http-errors
jsonwebtoken
mongoose
morgan
multer
nodemon
pug
@babel/core
@babel/eslint-parser
@vue/cli-plugin-babel
@vue/cli-plugin-eslint
@vue/cli-service
eslint
eslint-plugin-vue
chai
chai-http
mocha