Refactored-fortune-teller

Envision Your Destiny

Improving the student experience by alleviating decision-making anxiety (with added features). New and improved from 20-20 Re-Envisioned! (CSE 112 SP24 Team 14)

Private Video for CSE 112 - Team 14: link

Public Video for CSE 112 - Team 14: link

Adapted from 20/20 Visionaries.

Try it out button Documentation button Team page button

Development

Getting Started

You will need Node.js and npm for, among other things, running tests (Jest), JS statis code analysis (ESLint) and code formatting (Prettier). For installation instructions see the official documentation.

After you’ve successfully installed Node.js and npm and verified installation, simply run the following to initialize npm for the project:

npm install

Code Formatting

To run Prettier to format your code (and to make sure you earn that check-mark when you push to the Github repository), simply run the following:

npm run format

Testing

By default, our test suite runs E2E tests on the live version of the site. To specify where your local version is, set the BASE environment variable. For example:

$ BASE=http://127.0.0.1:5502 npm test

If you have Python3 installed, you can start a simple http server to run the E2E tests by simply navigating to the repo root folder and then running:

python3 -m http.server

Then in a seperate window run:

BASE=http://127.0.0.1:8000 npm test

Checking for JavaScript Problems

To check for any code quality or coding style issues using ESLint, just run the following:

npm run lint

Additional Documentation

Additional documentation is available in the wiki.