A quickstart to emulating a webserver on your local machine. This Project is for learning Purpose to create a Simple Blog with the use of 'AngularJs' Technology.
REMEMBER:-If you want to run these commands in Windows then you can Install one of these softwares git bash | Bash on Ubuntu on Windows)
-
$ git clone https://github.com/Homebrew/linuxbrew.git ~/.linuxbrew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
Install (or upgrade) Ruby:
brew install ruby
Windows: Here
-
Install Bundler
sudo gem install bundler
-
Create a
Gemfile
inside your project and put:source 'https://rubygems.org' gem 'rack'
-
Run & Install
bundle install
-
There is a file called
config.ru
on the same level as yoursrc
folder. Which is what contains your static files (js
,css
, andimages
directory) as well as yourindex.html
file. -
Run
rackup
in Terminal/Command Prompt. -
Navigate to http://127.0.0.1:9292/ or http://localhost:9292/