Coder Social home page Coder Social logo

juanalvarez123 / contests-v1 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5.62 MB

Web application built on Ruby. It uses local storage and a relational database.

Ruby 3.96% Shell 0.01% JavaScript 21.77% CSS 69.14% HTML 5.12%
ruby ruby-on-rails relational-database nfs nfs-client local-storage bootstrap

contests-v1's Introduction

Contests web application

This is a web application to manage contests, user's login/registration and participation in contests uploading audios.

Version 1

  • Built on Ruby and Ruby on Rails.
  • Bootstrap as a front-end framework.
  • Uses local storage to store images and audios.
  • Uses a relational database.

Assumptions

This application was created using:

  • Ruby 2.5.3
  • Rails 5.2.2
  • Ubuntu 18.4
  • MySQL 14.14

Prerequisites

  1. Install Ruby on Rails, follow this link.
  2. Install Git, follow this link.
  3. Install MySQL, follow this link.

Instructions

  1. Configure these environment variables:
Environment variable Example Description
CONTESTS_SERVER_URL http://localhost:8000/ The server URL where web application is deployed
CONTESTS_DATABASE_HOST localhost or 127.0.0.1 The database host
CONTESTS_DATABASE_USER root The database user
CONTESTS_DATABASE_PASSWORD 12345 The database password
CONTESTS_DATABASE_NAME contests The database name
CONTESTS_PATH_IMAGES /home/images/ The path for images
CONTESTS_PATH_ORIGINAL_FILES /home/audio/original/ The path where ORIGINAL audio files will be stored
CONTESTS_PATH_CONVERTED_FILES /home/audio/converted/ The path where CONVERTED audio files will be stored
  1. Go to bin/ folder.

  2. Install the MySQL gem and dependencies:

sudo apt-get install libmysqlclient-dev
gem install mysql2
  1. Install all the necessary gems and update the existing ones:
gem update
gem install rails
bundle install
  1. Create database model:
rails db:migrate
  1. Run the server:
rails server -p 8000
  1. Go to your favorite web browser and type:
http://localhost:8000/
  1. Enjoy.

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.