Coder Social home page Coder Social logo

project_rails_app_spacex_project's Introduction

RAILS PROJECT

SPACE LAUNCH TRACKING AND LEARNING PLATFORM



Project Details

  • The project is a rails app that will act as a forum and an information hub for space related content

  • The App is built on the following stack

    • Rails (v 6.1.4)
    • Ruby (v 3.0.2)
    • Postgres
    • RSpec
    • Factory bot
    • Docker
  • The services offered are

    • Mailing service
    • Authentication with Devise
    • Data streaming from spaceX
    • Youtube vide embedding
  • To run the application on docker you have to run the following commands

    • whne building the docker container for the first time or after making changes run the following

      • docker-compose up --build
    • generally run docker-compose up to run the app

    • Then run the following to run all the database migrations docker-compose run rails rake rb:migrate

    • To use the interactive shell of the docker container of choise either the db or rails app run

      docker ps
      
      ## copy the container id number from the output
      
      run  "docker exec -it {CONTAINER_ID} /bin/bash"
      
  • Open the app on your localhost port 3002

  • to run all the tests in rspec run

    • docker-compose run rails bundle exec rspec

Development Notes

  • Testing was carried out using rspec and with heavy emphasis on practicing Test Driven Development
  • Rspec configurationns were changed for ideal testing routines and adding formating to read the documentation better
  • Feature isolation was also observed with relevant features having their own branch on the github repository
  • Coupling of Controllers, Models was avoided with complete component isolation
  • The development cycle was an iterative cycle especially with the testing being carried out write before running a feature and doing the same constantly
  • API Keys are secured in private .env files for any need for the .env please reach out to me or generate a similar api key at the Nasa Api Site or the Google Developer Site and get the youtube v3 api secret keys
  • This was enabled with the debugging tool pry
  • API Keys are secured in private .env files for any need for the .env please reach out to me or generate a similar api key at the Nasa Api Site or the Google Developer Site and get the youtube v3 api secret keys

Note here are all the images of the application at this early stage test

project_rails_app_spacex_project's People

Contributors

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