A database-centric application with features such as user authentication, book search and sorting, book orders, book recommendations, user reviews and ratings, admin panel with monthly sales statistics etc.
This application is built with Ruby (v2.3.1) on Rails (v5.0.0.1). There is a great tutorial on setting up a Ruby on Rails development environment.
- Clone the repository to your local environment.
$ git clone https://github.com/esmondchuah/online-bookstore.git- Open Terminal and navigate to the cloned repository.
$ cd online-bookstore- Install existing gems.
$ bundle install- Download and install PostgreSQL.
- Create and configure database.yml and secrets.yml files in the config directory. You may refer to the samples provided in that same directory: database.yml.sample and secrets.yml.sample.
- Turn on your database server.
- Run the following rake commands in your Terminal.
$ rake db:create
$ rake db:migrate- Run the following command and navigate to http://localhost:3000 in your browser.
$ rails server