Coder Social home page Coder Social logo

floor_is_java_frontend's Introduction

Floor_Is_Java_Frontend

REST API This application provides a frontend for the REST API: https://github.com/cormac-larkin-kainos/Floor_Is_Java_Backend

  1. Follow the steps in the above link to run the REST API

How to start the Floor_Is_Java_Frontend application


Run npm install to build your application

In root folder of the project create .env file with the following API_URL=http://localhost:8080/api/ and SESSION_SECRET with your secret

Run npm start to run application To check that your application is running enter url http://localhost:3000/jobs

Tests

  1. Run npm test to run unit tests
  2. Run UI_TEST_URL=http://localhost:3000 && npm run test-ui to run UI tests locally, change the URL to run against remote

Config

You can change the URL of the REST API by setting the API_URL environment variable.

Build and run the service through docker


You can build using docker and integrate it with a database, as outlined below: pre-requisite = docker is installed in your local system. your docker image for https://github.com/cormac-larkin-kainos/Floor_Is_Java_Frontend is available locally (the web ui has a dependency on this) and running.

  1. Ensure the environment variables are correct for your api or enter these as additional arguments on the docker build command.

    Run docker build --build-arg API_URL=http://localhost:8080/api/ -t your-image-name . from your src directory. This will read from your docker file, build the environment required for the image, build your service and create the image locally.

    Use docker images to verify your image is available after running the above command.

    Now run docker run -d -p 3000:3000 your-image-name, this will then spin up your image and host on the given port.

    Done....the service should be able to operate as expected.

floor_is_java_frontend's People

Contributors

eoinmcbennett avatar thomas-kainos avatar jonnyevans99 avatar ciarasugrue avatar cormac-larkin-kainos avatar dianemorrison avatar

Watchers

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