GithubHelp home page GithubHelp logo

gdrive-api-test's Introduction

gdrive-api-test

Hi This application contains front end and services written using react js and spring boot, for interacting with google drive api.

To run the project [Spring Boot]

  • Import the project as maven project in eclipse.
  • Change SAVE_FILES_DIR in Constants.java file.
  • mvn clean command (or through eclipse interface).
  • mvn install command (or through eclipse interface). it will build a war. run it in apache tomcat.

after that goto -> http://localhost:(tomcat port no)/api-test/swagger-ui.html

[React]

  • Go to the frontend folder, which contains package.json.
  • change URL in EndPoints.ts to Spring Boot app url.
  • type & enter: yarn install
  • type & enter: yarn run dev
  • type & enter(for test): yarn run test
  • Launch the app by going to http://localhost:1234.

[FilesAndFoldersView]

  • Click on config button, which will open a modal window, enter the details and you will get the files and folders loaded.

[Upload File]

  • Enter the details and click on submit.

React part, i am using parcel as the bundler and typescipt. So, initially i ran into some issues with the types, and while setting up the the app for testing with jest and enzyme it took me a while to setup (as i ran into issues like it and expect undefined).

I am not familiar with unit testing. so i had to learn before writing the unit tests, so i did some googling and wrote few basic tests in spring boot and in react.

Because of time constraints, i was unable to write each and every possible test case, but the project was setup to extend the unit tests. I kept exception handling to basic.

gdrive-api-test's People

Contributors

pathtolearn 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.