Skip to content

Matthew-Jang/frontend-resume-builder

Repository files navigation

Tutorial Frontend in Vue 3

This application allows users to create and maintain a list of tutorials that can have multiple lessons within. Please visit https://github.com/OC-ComputerScience/tutorial-backend for the backend repository.

Please note:

  • This project utilizes Google Authentication to allow users to log in.
  • You will need to provide a Client ID and Client Secret from Google for this project to run locally.
  • You will need to provide a Refresh Token generated through the Google Developers OAuth 2.0 Playground for Cypress testing to work.

Project Setup

  1. Clone the project into your XAMPP/xamppfiles/htdocs directory.
git clone https://github.com/OC-ComputerScience/tutorial-frontend-vue3.git
  1. Install the project.
npm install
  1. Install cross-env to allow correct use of .env files.
npm install cross-env
  1. Make sure Apache is running.

    • We recommend using XAMPP to serve this project.
    • In XAMPP, make sure that Apache is running.
  2. In order to make the Google authentication work, have a project registered with the Google Developer console.

    • https://console.developers.google.com/
    • Enable Google+ API and Google Analytics API.
    • Enable an OAuth consent screen.
    • Create an OAuth client ID.
    • Save your Client ID and Client Secret in a safe place.
  3. In order to make the Cypress testing work, get a Refresh Token for your Google application through the Google Developers OAuth 2.0 Playground.

  4. Add a local .env file and make sure the client ID and client secret are the values you have registered with Google and that the refresh token is the value you generated through the OAuth 2.0 Playground.

  5. Compile and run the project locally.

npm run dev
  1. Test your project.
    • Note that your frontend and backend must be running for testing to be successful.
npm run test
  1. Test your project and watch the tests run with Cypress.
npm run test:open
  1. If you are wanting to serve your project for production:
    • You will need to have a .htaccess file.
    • It should be in your public folder.
    • Visual Studio Code will auto format it to where the file will not be read correctly, so add the following rule to your settings.json in Visual Studio Code.
"files.associations": {
    "**/*.htaccess": "plaintext"
},
  1. (Optional) Compile the project for production.
npm run build
  1. (Optional) Lint and fix the project files.
npm run lint

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •