Giter VIP home page Giter VIP logo

railsserver's Introduction

RailsServer

Generic boilerplate server made in RubyOnRails to start new projects.

Install

  1. Install rvm from: Installing RVM

  2. Install Ruby with rvm

     $ rvm install "ruby-2.6.6"
    
  3. Install Rails 5.2.4.4

  4. Git clone this project

  5. Isntall bundle

     $ gem install bundle
    
  6. Enter in project dir an update gems with:

     $ bundle update
    
  7. Install libv8 On macOS:

     brew install v8
    

    On Linux

     sudo apt-get install libv8-dev
    
  8. Migrate db

     $ rake db:migrate
    
  9. Seed database

     $ rake db:seed
    

    This will create and admin user ([email protected] , password: 123456)

  10. Run the server

    $ bundle exec rails server
    
  11. Open a browser and open http://localhost:3000/admin url.

  12. To see swagger doc open http://localhost:3000/api-docs/index.html url

Testing

Launch tests with command:

$ rails t

This project contains

ActiveStoreage (Rails 5.0) for file upload

Use the model Airline as a sample for uploading files

New users

Create new user with http://localhost:3000/users/sign_up

Instructions to change the name of the project

Change all occurrences of "RailsServer" string to your project name

This string appears in this files:

  • app/views/layouts/application.html.erb
  • config/appication.rb
  • config/initializers/session_store.rb

Gems

railsserver's People

Contributors

dependabot[bot] avatar madcato avatar

Stargazers

 avatar

Watchers

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