Skip to content

DevCom-IITB/ResoBin

Repository files navigation

ResoBin - Easily Share Course Material

Requirements

  • React 17+

Getting started

  • Note: Enviroment variables are located here, and will only be accessible to the core developers.
  • Before starting, make sure to install Yarn. Also, avoid using npm in this repository.

Development

  • Clone this repository

    git clone https://github.com/wncc/ResoBin.git
    cd ResoBin
  • Install dependencies:

    yarn install
  • Copy the environment variables to the base directory (current directory)

  • Finally, run the development server:

    yarn start
  • The frontend server runs at http://localhost:3000, and might take a few minutes to start.

Production

  • Build the project

    yarn build
  • Serve the /build directory using your webserver (Nginx or Apache)

Production (deployment with Docker)

  • Build & tag the image file

    docker build --rm -f Dockerfile -t resobin:latest .
  • Run the image file

    docker run --rm -d -p 80:80 resobin:latest