Coder Social home page Coder Social logo

geodistance's Introduction

Introduction

This is a simple tool that facilitates collection of data on travel routes patterns and places. Using this information provided by the user it then calculates approximate travel time, and cost for the user. plot

User Stories

  1. The user can enter the destination name into an online form
  2. The user can enter a place of origin name
  3. The user can select the mode of transport
  4. The user will get the distance between the two points
  5. The user will get the total approximate travel time
  6. User can add something interesting to the description of a route
  7. User can view places commonly traveled by others on a map

Requirements

  • Ruby 3.0.2
  • Rails version: 7.0.4.2
  • NodeJS (v16), and npm
  • Postgresql
  • React-Leaflet

Setup

If you have latest Ruby and ruby on rails installed and Node run:

bundle install
rails db:create
rails db:migrate
npm install --prefix client

Instructions

To set up your backend, You can run the Rails application in one terminal by running:

$ rails s

The React application is in the client directory. To set it up, from the root directory, Then, [open another terminal][new terminal] and run React. On the terminal run:

$ npm start --prefix client

Using --prefix client will run the npm command within the client directory.

Each application will run on its own port on localhost:

  • React: [http://localhost:4000]
  • Rails: [http://localhost:3000]

Using Docker Image.

This repository comes with Docker image which you can run without installing the dependencies on your local environment seperately.

Run the Docker image using the docker run command followed by the image name and any additional options or parameters needed.

Verify that the container is running by checking the output of docker ps. If the container is not running, you can check the logs using the docker logs command followed by the container ID or name.

geodistance's People

Contributors

noahkimtai avatar

Watchers

 avatar

geodistance's Issues

Format text

Format text that displays information to the user to make it more presentable.

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.