суббота, февраля 29, 2020

jointoit test task

Fullstack Developer Test Task
Need to create admin panel to manage companies. Basically, project to manage companies and their
employees. Mini-CRM.
Requirements:
• API Laravel Auth: ability to log in as administrator
• Use database seeds to create first user with email admin@admin.com and password “password”, and
use "Faker" to create 10 000 Companies & 10 000 Employees
• CRUD functionality (Create / Read / Update / Delete) for two menu items:Companies and Employees.
• Companies DB table consists of these fields: Name (required), email, logo (minimum 100×100), website
• Employees DB table consists of these fields: First name (required), last name (required), Company
(foreign key to Companies), email, phone
• Use database migrations to create those schemas above
• Store companies logos in storage/app/public folder and make them accessible from public
• Use basic Laravel resource controllers with default methods – index, create, store etc.
• Use Laravel’s validation function, using FormRequest classes
• Use Laravel’s pagination for showing Companies/Employees list, 10 entries per page
• Use CSS Framework (Material Design Vue.js, Materialize etc)
• Email notification: send email whenever new company is entered (use Mailgun or Mailtrap)
• Make the project multi-language (using resources/lang folder)
• All front-end should be realised like SPA with using VueJS / Vuex.
All files must be uploaded to Github

jp commerce testtask


1) User registration system -
 - sign up, with require fields ,if  the user didn't follow the rules he can't continue.
- Verifying email for activate the account.
- Sign in.

2) Data collection form -
collect the data into a data base to be ready for future uses.

3) Data visualization -
Showing the data on graphs.
(choose 2 subjects from the data collection forms [ age , gender ] for example , and make two different graphs that will show the age in function of gender etc.

4) Generating CSV file - from the data that user insert

**the Data that i want you to collect is:
Name , Family name , age, mail , phone , average salary , gender , birth date.

the Ui / UX doesn't important to me, only the functionality is important in that stage .
build it with laravel framework.

if you do not have time let me 

jointoit test task

Fullstack Developer Test Task
Need to create admin panel to manage companies. Basically, project to manage companies and their
employees. Mini-CRM.
Requirements:
• API Laravel Auth: ability to log in as administrator
• Use database seeds to create first user with email admin@admin.com and password “password”, and
use "Faker" to create 10 000 Companies & 10 000 Employees
• CRUD functionality (Create / Read / Update / Delete) for two menu items:Companies and Employees.
• Companies DB table consists of these fields: Name (required), email, logo (minimum 100×100), website
• Employees DB table consists of these fields: First name (required), last name (required), Company
(foreign key to Companies), email, phone
• Use database migrations to create those schemas above
• Store companies logos in storage/app/public folder and make them accessible from public
• Use basic Laravel resource controllers with default methods – index, create, store etc.
• Use Laravel’s validation function, using FormRequest classes
• Use Laravel’s pagination for showing Companies/Employees list, 10 entries per page
• Use CSS Framework (Material Design Vue.js, Materialize etc)
• Email notification: send email whenever new company is entered (use Mailgun or Mailtrap)
• Make the project multi-language (using resources/lang folder)
• All front-end should be realised like SPA with using VueJS / Vuex.
All files must be uploaded to Github

суббота, февраля 15, 2020

billline

To get the latest news about specified persons (twitter users) I would need you to develop me a REST API that would get me the latest tweets from those persons. I would like to also set those persons by myself via an API method where I could either add or remove persons. You will store added persons on your side.

Look at an example bahaviour of such API:
1) I add user XYZ via API method
2) I call a method that get me the latest tweets for added persons (only person XYZ in this case) via API method
3) I remove user XYZ via API method

See the attached API documentation of such system.

Also see external documenations that could help you with this task:
developer.twitter.com/en/docs
php.net/docs.php

Latest Twitter feed API
This is API documentation of a system that returns only the latest tweets from added Twitter
users. Communication is via Rest API with content-type: application/json
API methods
Add
GET: {endpoint}/add?id=...&user=..&secret=..
Paramaters description:
Id - Random 32-char string used as unique identifier of a request
User - Twitter username of an user that should be added to my list
Secret - Secret parameter to be used as security layer
This method will be used in case I want to add another Twitter user to the feed
In case of successly added user - respond with HTTP status 200 and blank body.
In case of error - respond with error code describe below
Feed
GET: {endpoint}/feed?id=...&secret=..
Paramaters description:
Id - Random 32-char string used as unique identifier of a request
Secret - Secret parameter to be used as security layer
Method gets the latest tweets from users that were added and outputs them in specified
format. If user list is empty, response should be blank. If user list is NOT empty, response
needs to look like this:
Success Response
{
"feed": [{
"user": "",
"tweet": "",
"hashtag": ["", "", ""]
},
{
"user": "",
"tweet": "",
"hashtag": ["", "", ""]
}
]
}
In case of error - respond with error code describe below
1
Remove
GET: {endpoint}/remove?id=...&user=..&secret=..
Paramaters description:
Id - Random 32-char string used as unique identifier of a request
User - Twitter username of an user that should be added to my list
Secret - Secret parameter to be used as security layer
Method removes already added users from the list of users
In case of successly added user - respond with HTTP status 200 and blank body.
In case of error - respond with error code describe below
Secret parameter
Secret parameter is used as security layer in every request. API must restrict requests that
has wrong secret parameter value and respond with related error.
Secret calculation
Secret is calculated as hmac_sha1 of concatenated parameter values except secret.
http://php.net/manual/en/function.sha1.php
Example:
{endpoint}/add?id=WBYX1TLPRWJ7NSV36LCPP2OZFH6AE6LM&user=elonmusk
sha1(WBYX1TLPRWJ7NSV36LCPP2OZFH6AE6LMelonmusk)=3dfb3e37b62f0f13ceca0df
a87a860b007a29e73
{endpoint}/add?id=WBYX1TLPRWJ7NSV36LCPP2OZFH6AE6LM&user=elonmusk&secret=
3dfb3e37b62f0f13ceca0dfa87a860b007a29e73
Errors
In case of any error, API should respond with one of errors below to any API method.
Wrong secret value
{"error": "access denied"}
Missing parameters
{"error": "missing parameter"}
Internal error
{"error": "internal error"}
2

вторник, мая 05, 2015

postgres-install

WARNING: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.

Success. You can now start the database server using:

    postgres -D /var/lib/postgresql/data
or
    pg_ctl -D /var/lib/postgresql/data -l logfile start

пятница, марта 27, 2015

NAT and DHCP

LAN

Configure VLANs on Switch0. Server2 in VLAN 255. PC1 - VLAN 7, PC0 - VLAN 34.
For non switch interconnect ports (all ports on Switch0) configure spanning-tree portfast for quick STP port forwarding on these ports.
DHCP