Git Product home page Git Product logo

ratemyprofessor's Introduction

Rate My Professor

CS-GY 9053 Final Project (SpringBoot REST)

Getting Started Guide

Things you need

  • Clone the frontend and backend repo (please make sure you clone both under the same folder)

    • frontend repo: https://github.com/NigelLu/RateMyProfessorUI

    • backend repo: https://github.com/NigelLu/RateMyProfessor

    • sample command you may wanna use

        # navigate to the folder you wanna put both repos in
        cd <folder_of_your_choice>
      
        # clone both repos
        git clone https://github.com/NigelLu/RateMyProfessor.git
        git clone https://github.com/NigelLu/RateMyProfessorUI.git
    • after cloning, your should have a folder structure like this

        ├── <folder_of_your_choice>
        │   ├── RateMyProfessor
        │   ├── RateMyProfessorUI
    • SPECIAL NOTICE: if you are on a Windows machine, the OS might change the line ending of mvnw.cmd and mvnw from LF into CRLF. Please make sure to change it back to LF for the docker build to work!!!

  • Install Docker and make sure you have docker CLI available in your command line. Tutorial here. After installing the Docker engine, you can test it using:

      docker -v
      # if the installation is correct, 
      # this command should give you something like
      # "Docker version 24.0.7, build afdd53b"

Run the app in Docker

  • In the backend repo, there is a file named compose.yaml that tells Docker to run 3 containers for backend, frontend, and PostgreSQL respectively.

  • To get the whole project running, all you need to do is as below

      # assume you have cd-ed into your <folder_of_your_choice>
    
      # cd into the backend repo, where the `compose.yaml` resides
      cd RateMyProfessor
    
      # use Docker CLI to compose and run the whole project
      docker compose up -d
  • After successfully executing the command, you should see something like below in your command line (first time running this might take a while as Docker needs to pull and install all dependencies) docker-compose-result

  • Hooray, you have successfully started the application. Now visit here to start using Rate My Professor -> http://127.0.0.1:3000

ratemyprofessor's People

Contributors

nigellu avatar hao-191 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.