Coder Social home page Coder Social logo

codelabs's Introduction

####REQUIREMENTS

First you must have the base environment for CodeLabs. Read the following sections to create a base environment and Install CodeLabs

####SERVER CONFIGURATION

You should have a LAMP(Linux+Apache+MySql+Php) server running on your system

Apache -> http://www.apache.org MySQL -> http://www.mysql.com PHP -> http://www.php.net

To set up a LAMP server execute these commands in the linux shell:

apt-get install apache2 php5 libapache2-mod-php5 apt-get install mysql-server mysql-client php5-mysql apt-get install phpmyadmin

If you get any errors try searching online.

Go to localhost/phpmyadmin and put your username as "root" and for password try "root" or "" checkout which one works and remember it.

####INSTALLATION

  1. COPY CodeLabs Copy the folder named Codelabs into a directory within your web server's document root or your public HTML directory e.g.

    $ cp Codelabs /var/www/ -R

    Grant Read Write Execute Permissions to Codelabs e.g.

    $ chmod 777 -R /var/www/Codelabs

  2. CREATE THE CodeLabs! DATABASE

    CodeLabs! uses MySQL for Database support.You will have to create the codelabs database. Open the Codelabs directory and find a codelabs.sql file.Open phpmyadmin and create a database named spicode.Open this Databse and you will find a Import option on Top right hand side. Click import and choose codelabs.sql file and click Go.

  3. CONFIGURE CodeLabs In the directory Codelabs find a file named config.php,open that file and change $server_name to your website name $mysql_username to your mysql username $mysql_password to your mysql password $install_directory to the address where you have copied the Codelabs directory.

    Others variables need not be changed but are provided for flexibility.

    Congratulations!! CodeLabs is now installed and you host and organise contests.

    You can now launch your browser and point it to your CodeLabs! site e.g.

    http://www.mysite.com/Codelabs

####CodeLabs! ADMINISTRATION

To create a new contest go to create_contest.php fill in the details required a unique contest id will be generated use this contest id while uploading the problems upload the test cases in zip file name the input test files as i1.txt,i2.txt,....i10.txt.

To add more tutorials go to Codelabs/main/tutorials and copy the mirror there and corresponding image in images directory also update its link in tutorial.html

To add more References perform same as above in referneces folder.

codelabs's People

Contributors

anant-agarwal avatar

Watchers

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