Giter Club home page Giter Club logo

assignments's Introduction

Assignments

DevOps Engineer Assignment

Assignment-1: Web Server Setup for WordPress

Please create a command-line script, preferably in bash, to perform following tasks in order.

Your script will check if PHP, Mysql & Nginx are installed. If not present, missing packages will be installed.

The script will then ask user for domain name. (Suppose user enters example.com)

Create a /etc/hosts entry for example.com pointing to localhost IP.

Create nginx config file for example.com

Download WordPress latest version from http://wordpress.org/latest.zip and unzip it locally in example.com document root.

Create a new mysql database for new WordPress. (database name “example.com_db” )

Create wp-config.php with proper DB configuration. (You can use wp-config-sample.php as your template)

You may need to fix file permissions, cleanup temporary files, restart or reload nginx config.

Tell user to open example.com in browser (if all goes well

Assignment-2: Blogging Command-Line App

Please create a small command-line blogging application which implements following in bash.

For this assignment you need to use a database. You can use sqlite.

blog.sh will be name of application itself.

blog.sh --help will list help and commands available

blog.sh post add "title" "content" will add a new blog a new blog post with title and content.

blog.sh post list will list all blog posts

blog.sh post search "keyword" will list all blog posts where “keyword” is found in title and/or content.

blog.sh category add "category-name" create a new category

blog.sh category list list all categories

blog.sh category assign assign category to post

blog.sh post add "title" "content" --category "cat-name" will add a new blog a new blog post with title, content and assign a category to it. It category doesn’t exist, it will be created first.

Please Note : I have created Blog_Arg_script.py instead of blog.py

assignments's People

Contributors

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