Samuelwanza / rails-webpack-helloworld

This project aims to combine webpack in rails application to ensure javascript frontend can live in the rails app folder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ“— Table of Contents

πŸ“– Rails with React

Fullstack - Rails with React and webpack is a fullstack app that have 5 greetings displaying on a the index page

πŸ›  Built With

Tech Stack

Client
  • React
  • Server
  • Ruby
  • Rails
  • Database
  • Postgres
  • Key Features

    • Built using Ruby on Rails with React

    (back to top)

    πŸ’» Getting Started

    To get a local copy up and running, follow these steps.

    Prerequisites

    In order to run this project you need:

        ruby >= 3.2.0
        rails >= 7.0
        postgres >= 15.3
        node
    

    Setup

    Clone this repository to your desired folder:

      git clone https://github.com/samuelwanza/rails-webpack-helloworld.git

    You need to setup database for these project

      development = your_dataabase_dev
      test        = your_datasebase_test
      production  = your_datasebase_prod
    

    or you can use your own database and change the config/database.yml

      default: &default
        adapter: postgresql
        encoding: unicode
        pool: 5
        username: [your_username]
        password: [your_password]
        host: localhost
    
      development:
        <<: *default
        database: [your_database_for_development]
    
      test:
        <<: *default
        database: [your_database_for_test]
    
      production:
        <<: *default
        database: [your_database_for_production]

    Install

    Install this project with:

      cd hello-rails-react
      bundle install
      npm install

    it will install the required gemfile for running the project

    Usage

    to use this project:

       npm run build
       bin/rails server

    it will run the the server on localhost:3000

    (back to top)

    πŸ‘₯ Author

    πŸ‘€ Cephas Tokoli

    (back to top)

    πŸ”­ Future Features

    • add more features
    • implement styling

    (back to top)

    🀝 Contributing

    Contributions, issues, and feature requests are welcome!

    Feel free to check the issues page.

    (back to top)

    ⭐️ Show your support

    If you like this project you can share this project to your friend

    (back to top)

    πŸ™ Acknowledgments

    I would like to thank microverse for this project

    (back to top)

    πŸ“ License

    This project is MIT licensed.

    About

    This project aims to combine webpack in rails application to ensure javascript frontend can live in the rails app folder

    License:MIT License


    Languages

    Language:Ruby 60.3%Language:HTML 14.0%Language:JavaScript 9.9%Language:Batchfile 6.9%Language:Dockerfile 6.1%Language:CSS 1.8%Language:Shell 1.1%