Skip to content

saraheig/spot

Repository files navigation

Spot

The main aim of this project is to list and map spots (places of interest and activities) of a region, such as the city of Yverdon-les-Bains (Switzerland).

This project is composed by a Ruby on Rails 6.0+ application with a responsive mobile part and an administration Web part.

The application is currently deployed on Heroku. To access the administration Web part, please use the following link. The application is tested through unit and system tests with Travis CI to run the tests and Coveralls to check the coverage of the tests.

Build Status Coverage Status

Main characteristics

Here are the main characteristics of the application:

Requirements and set up

Tip: Use rbenv or RVM with Ubuntu for instance.

Set up

Here are the main steps to quickly set up the machine in order to locally run this application:

  1. Install Ruby with ruby-build for instance, PostgreSQL, PostGIS, Yarn, Git and Chrome
  2. Download the code from this page or by the command line git clone https://github.com/saraheig/spot.git
  3. Install the dependencies with Yarn with cd spot and then yarn install
  4. Install bundler with gem install bundler
  5. Install the Ruby gems with bundle install
  6. Start PostgreSQL with sudo service postgresql start
  7. Create the database with rails db:create (If necessary, create a user with sudo -u postgres createuser --superuser YourName)
  8. Connect to the database spot_development and enable PostGIS with psql -d spot_development and then CREATE EXTENSION postgis;
  9. Migrate the database with rails db:migrate
  10. Populate the database with rails db:seed
  11. Launch the application with rails server and open a browser at http://localhost:3000 or http://localhost:3000/admin (Email: admin@example.com - Password: password) for instance

Some more information

  • To locally execute the tests, run rails test and rails test:system.
  • To write or modify code, the Atom text editor can for instance be used.
  • To access to the local database, run rails console.
  • Here is the model of the database: Conceptual model.

Instruction manual about how to use the application

June 2020 / MAS-RAD formation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published