Giter Club home page Giter Club logo

w3schools-offline's Introduction

#Offline version of W3Shools. W3Schools is a web developer information website, with tutorials and references relating to web development topics such as HTML, CSS, JavaScript, PHP, SQL, and JQuery. The site provides a reference manual covering many aspects of web programming.

Ubuntu Instructions

You need to setup an Apache server as w3schools use #asp engine, which cannot be rendered directly by the browser.

Creating server for ASP.NET applications in Ubuntu using Modmono ModMono is an Apache module which provides ASP.NET support for Apache web server. We will be using Apache as an alternative for Microsoft’s IIS in Windows.

Installation

Here is a nice tutorial to setting up the server, just follow its #installation part https://ubuntuexperiment.wordpress.com/2009/01/29/running-aspnet-applications-in-ubuntu-using-modmono/

Adding the offline website

We are going to create a site called W3schools. But first we need to create a configuration file for this site inside the directory “etc/apache2/sites-available/”. To do this, execute the following command:

sudo nautilus /etc/apache2/sites-available/

This will open the directory in Nautilus. Now right-click inside the window and create a new empty file and name it “W3schools.conf”. Then open the file using a text editor and paste the following text inside it, save and close.

Alias /W3schools "/var/www/W3schools"
AddMonoApplications default "/W3schools:/var/www/W3schools"
<Location /W3schools>
SetHandler mono
</Location>

You need to change the server root directory for W3schools to successfully work. Run the command

sudo gedit /etc/apache2/sites-available/000-default.conf

and change the following line to what you want:

DocumentRoot /var/www/html to /var/www/W3schools

Also edit apache2.conf to do so run sudo gedit /etc/apache2/apache2.conf

and find this
  <Directory /var/www/html/>
  Options Indexes FollowSymLinks
  AllowOverride None
  Require all granted
  </Directory>

and change /var/www/html to your preferred directory( /var/www/W3schools )

Now inside Nautilus, browse to /var/www/ directory and create a new folder called “W3schools”

2.Download and extract the zip file from the link below:

https://drive.google.com/file/d/0BxNDMvWYfeVEOUpOU1cwSndfVFU/view?usp=sharing

Then come the final steps where we enable the site and restart Apache one last time:

a2ensite Ubuntu
sudo /etc/init.d/apache2 restart

That’s it! Now open your web browser and point to: http://localhost/W3schools/index.html

#Windows instructions

#part 1

  1. On the Start menu, click Settings and select Control Panel

  2. Double-click Add or Remove Programs

  3. Click Add/Remove Windows Components

  4. Install Internet Information Services (IIS)

  5. Look for a new folder called Inetpub on your hard drive( windows installation drive )

  6. Open the Inetpub folder, and find a folder named wwwroot

#part 2

  1. Download and extract the following file https://drive.google.com/file/d/0BxNDMvWYfeVEOUpOU1cwSndfVFU/view
  2. Copy the contents from the folder www.3schools.com to wwwroot folder ( just copy the contents of the folder not the folder)
  3. On the Start menu, find and open Internet Information Services (IIS)
  4. Find Default Web Site under sites on the left side
  5. Select the MIME type
  6. Add new from the right side
  7. Set File name extenstion to .asp and MIME type to text/html
  8. Save and exit
  9. That’s it! Now open your web browser and point to: http://localhost/index.html

#Enjoy!!!

#Credits - W3schools.com

w3schools-offline's People

Contributors

xadahiya avatar

Watchers

athiwatp 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.