Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update event-management-app #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 13 additions & 22 deletions programming/log-processor/event-management-app
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,25 @@

#### Problem

You have a [log file](example.log). You need to write code that reads the given log file, processes its content and provides a summary of the logs, as shown in the 'output' section below. The code should be written in any one of the following programming languages: node, python, php, golang.
##### Event management application

The filename should be: process.php, process.py, process.js or process.go depending upon the language you choose.
Develop an event management application such as a hackathon, seminar, college fest, etc., The event management application allows organizers/users to perform CRUD operations on events. Note: The management application can store data in a JSON file instead of a database.
You can use any language or framework you like, although a core language (Python, PHP, NodeJS, etc ) is recommended. Based on your comfort level, you may use jQuery, vanilla JavaScript, or a JavaScript framework for the frontend part.

Your code should run from the cli as shown below. If you don’t know how to use cli in one of the given languages, now is the time to learn it.
##### Requirements

In php,
`php process.php`
- Set up CRUD operation for events but instead of using a database just store the data in a JSON file.
- Fields required: title, description, total number of participants, start date, end date, and any other fields that seem necessary according to the type of event.
- Implement both client-side and server-side validation
- Filter events by title, start date, and end date.
- Bonus part: Add authentication, and ensure that CRUD operations can only be performed when the user is authenticated.

In python,
`python process.py`

In node,
`node process.js`

In go,
`go run process.go`

Running the above command should give the following output:
```
2016-12-12 warning:2 error: 1
2016-12-13 warning:0 error: 1
2016-12-14 warning:1 error: 1
```
##### Deliverables
- Source code repository
- A README file with prover setup instructions.
- Screenshots of the application showing all the working functionalities

### Bonus points

* If you can write and include unit tests for your code.
* If you write readme files with the instructions necessary to run the code

Note: If you are creating a separate class file, your class filename should be "logprocessor.php", "logprocessor.py" and so on for other languages.