Skip to content

Repository files navigation

Lint Code

Hand In Hand

Web Application created as a project for MSU Denver's Fall 2023 Senior Experience Course. Authors are Sarah Barnes, Brea Chaney, Erika Sadsad, Jessica Gardner, Alyssa Williams

TEAM: Please see our Teams channel documentation for more detailed instructions about each section.

Environment Variables Needed:

  • POSTGRES_PORT, POSTGRES_DB, POSTGRES_USR, POSTGRES_PWD, POSTGRES_HOST, POSTGRES_URL, PGADMIN_DEFAULT_EMAIL, PGADMIN_DEFAULT_PASSWORD

To Run:

you must have Docker Compose installed and running.

run the command:

docker compose up

head to https://localhost:3000/ in your browser. That's it!

PG-ADMIN TOOL

This project contains access to Pg-Admin, a GUI tool for accessing our database in local development.

Run

Make sure container is running, and head to http://localhost:16543/

Login
(can be changed in environment variables)
username: example@email.com
password: 123fakepassword

ESLint and StyleLint

Linter Purpose and Instructions

A linter ensures that code conforms to best coding practices. This project supports linting for JavaScript, HTML, CSS and SCSS.

To Run

Then while inside the application container, run the linter for either .js files or .html files:

npx eslint yourfile.js/html

NOTE: You can lint all files by running:

npx eslint .
To auto-fix via ESLint
npx eslint yourfile.js --fix

NOTE: You can lint/fix all files by running:

npx eslint . --fix

StyleLint

From inside the container, run the following command to lint either .css or .scss files:

npx stylelint path/myFile.css/scss
To auto-fix style files via StyleLint:
npx stylelint path/myFile.css/scss --fix

Swagger Documentation

You may need to run following command inside the app-1 Docker container.

npm install swagger-ui-express swagger-jsdoc

Inside app docker container, run

npm run start

Go to Swagger API docs in https://localhost:3000/api-docs/

coverage report

npm run coverage npx nyc --reporter=lcov --reporter=text mocha "tests/**/*.js" "src/**/*.js" --exit

About

Senior Experience Project Fall 2023

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages