GithubHelp home page GithubHelp logo

hhy5277 / circuitverse Goto Github PK

View Code? Open in Web Editor NEW

This project forked from circuitverse/circuitverse

0.0 1.0 0.0 3.4 MB

Home Page: https://circuitverse.org

License: MIT License

Dockerfile 0.05% Ruby 17.04% JavaScript 53.80% CoffeeScript 0.21% CSS 2.91% HTML 25.91% Shell 0.09%

circuitverse's Introduction

CircuitVerse

Gitter CircleCI

Join Mailing List

Versions

  • Ruby Version: ruby-2.5.1
  • Rails Version: Rails 5.1.6
  • PostgreSQL Version: 9.5

Cloning Instructions

  • git clone https://github.com/CircuitVerse/CircuitVerse.git this repository
  • cd CircuitVerse

Note : If you want to contribute, first fork the original repository and clone the forked repository into your local machine followed by cd into the directory

git clone https://github.com/<username>/CircuitVerse.git
cd CircuitVerse

Setup Instructions

Please go through the Contribution Guidelines before going forward with any development. This helps us keep the process streamlined and results in better PRs

Note: You might want to use the docker instructions if you do not want to setup your own environment.

  • Install ruby using RVM, use ruby-2.5.1
  • Install Dependencies: bundle install
  • Configure your DB in config/database.yml, copy config/database.example.yml (Note : check for postgres password and update it in place of "postgres")
  • Create database: rails db:create
  • Run Migrations: rails db:migrate
  • At this point, local development can be started with rails s -b 127.0.0.1 -p 8080

Additional software:

  • Install imagemagick
  • Start Redis server process.
  • To start sidekiq: bundle exec sidekiq -e development -q default -q mailers -d -L tmp/sidekiq.log (In development)

Running Tests

Ensure all tests are passing locally before making a pull request. To run tests -

  • bundle exec rspec or bin/rake spec:all

Docker Instructions

  • Install docker and docker-compose
  • Run: docker-compose up

If you need to rebuild, run this before docker-compose up

docker-compose down
docker-compose build --no-cache

Developer Instructions

Developers can quickly get started by setting up the dev environment using the instructions above. The database is seeded with the following admin account.

User: Admin
Email: [email protected]
Password: password

For debugging include binding.pry anywhere inside the code to open the pry console.

Additional setup instructions for Ubuntu

Additional instructions can be found here and there are some extra notes for single user installations:

  • If you are facing difficulties installing RVM, most probably it is because of an older version of rvm shipped with Ubuntu's desktop edition and updating the same resolves the problem.

  • Run Terminal as a login shell so ruby and rails will be available.

    Removing RVM

    sudo apt-get --purge remove ruby-rvm` <br />
    sudo rm -rf /usr/share/ruby-rvm /etc/rvmrc /etc/profile.d/rvm.sh
    

    Installing new version of RVM

    curl -L https://get.rvm.io |
    bash -s stable --ruby --autolibs=enable --auto-dotfiles
    
  • If you are facing errors running the rails db:create ensure that the socket file(i.e mysql.sock) is present in that location. Some possible locations where it might be present is /run/mysqld/mysqld.sock or /var/lib/mysql/mysql.sock and mention the exact location.

Production Specific Instructions

bundle install --with pg --without development test
RAILS_ENV=production bundle exec rake assets:precompile
bundle exec sidekiq -e production -q default -q mailers -d -L tmp/sidekiq.log` (In production)

Code of Conduct

This repository contains the Code of Conduct of CircuitVerse Community.

CircuitVerse Community

We would love to hear from you ๐Ÿ˜„ Here are links to our:

Gitter

Discord - This is an unofficial fan communication channel. Thanks to @jbox1 for this initiative.

License

This project is licensed under the MIT License - see the LICENSE for details.

circuitverse's People

Contributors

ahmedkrmn avatar amansingla97 avatar ankitanvesh avatar ankitkataria avatar arkokoley avatar armudgal avatar creyente1897 avatar dev-pradhumna avatar fpintos avatar hyphex avatar jaideep329 avatar jbox144 avatar johneckert avatar kunalvishnoi avatar lucaslago avatar manuelcarrizo avatar mohammedsafwat avatar parikshit-hooda avatar rkpattnaik780 avatar rogelio-o avatar satu0king avatar saumyashrm2802 avatar shubhankarsharma00 avatar subhajitcode avatar tachyons avatar vibhavagarwal5 avatar vik-y avatar yugandhartripathi 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.