Giter VIP home page Giter VIP logo

project-template-react-rails-api's Introduction

Board Game Fanatics

To start Board Game Fanatics

From this folder (project-template-react-rails-api), enter 'rails s' from the terminal window to start the server. Then, enter npm start --prefix frontend to start the frontend server.

Description

This project is scaffolded so that you can build a React frontend and Rails backend together.

Built Using

React ReactRouter Ruby Rails React-Bootstrap

Requirements

  • Ruby 2.7.4
  • NodeJS (v14 or higher), and npm

See Environment Setup below for instructions on installing these tools if you don't already have them.

Setup

Fork and clone this repository.

Then run:

bundle install
rails db:create
rails db:seed
npm install --prefix frontend

You can use the following commands to run the application:

Environment Setup

Install the Latest Ruby Version

Verify which version of Ruby you're running by entering this in the terminal:

ruby -v

Make sure that the Ruby version you're running is listed in the supported runtimes by Heroku. At the time of writing, supported versions are 2.6.8, 2.7.4, or 3.0.2. Our recommendation is 2.7.4, but make sure to check the site for the latest supported versions.

If it's not, you can use rvm to install a newer version of Ruby:

rvm install 2.7.4 --default

You should also install the latest versions of bundler and rails:

gem install bundler
gem install rails

Install NodeJS

Verify you are running a recent version of Node with:

node -v

If your Node version is less than 14, update it with:

nvm install node

You can also update your npm version with:

npm i -g npm

project-template-react-rails-api's People

Contributors

ihollander avatar jodykuper avatar lizbur10 avatar

Forkers

irynastein

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.