GithubHelp home page GithubHelp logo

hien-pd-dac / it3_jungle_boys Goto Github PK

View Code? Open in Web Editor NEW

This project forked from endiduowng/it3_jungle_boys

0.0 0.0 0.0 543 KB

IT Nihongo 3

Ruby 55.54% JavaScript 1.61% CSS 0.65% HTML 42.07% CoffeeScript 0.13%

it3_jungle_boys's Introduction

Anime review, rating website use Rails

How to run

Setup development environment:

Go here: https://gorails.com/setup, choose your OS's version and following instructions to install Ruby, Rails and MySQL.

Download source code, library:

Download source code and open terminal inside it:

$ cd it3_jungle_boys

First, rename database.yml.example to database.yml

$ mv config/database.yml.example config/database.yml

Then install library:

$ bundle install

Create database

Log in to MySQL as the root user:

$ mysql -u root -p

Type the MySQL root password, and then press Enter.

In MySQL tool create new user.(replace 'username' and 'password' to whatever you want):

mysql> GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost' IDENTIFIED BY 'password';

Type \q to exit the mysql program.

To log in to MySQL as the user you just created, type the following command:

$ mysql -u username -p

Type the user's password, and then press Enter.

To create a database, type the following command.

mysql> CREATE DATABASE itnihongo3_development;

Type \q to exit the mysql program.

Update MySQL username, password to database.yml (line 16, 17)

Create table and data

Create database's tables using migration:

$ rails db:migrate

Seed some data to database:

$ rails db:seed

Server

Finally, run rails server:

$ rails server

Open browser and go to address: "localhost:3000"

Hope you enjoy it!

it3_jungle_boys's People

Contributors

01101100 avatar bachdx96 avatar endiduowng avatar neversayneverlove 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.