Skip to content

Latest commit

 

History

History
71 lines (56 loc) · 1.69 KB

README.md

File metadata and controls

71 lines (56 loc) · 1.69 KB

Jotacom Test

The objective is create a hotsite!

Running the project

Locally

  1. Create a new database called jotacom
    CREATE DATABASE jotacom;
  2. Copy the .env.backup file content and paste on the .env file. Remember to check your database informations like: DB_HOST, DB_USERNAME, DB_PASS and etc.
  3. Go to the directory in your terminal and run the following commands: a. Installing the project dependencies:
    $ composer install
    b. Migrating the table to the database:
    $ php artisan migrate
    c. Starting the project:
    $ php artisan serve

Globally

  1. Open the project in the Web: https://jotacom-exam.herokuapp.com/

Routes

/ => GET method Render the hotsite page.

/ => POST method: Add a new lead to the database.

/register => GET method: Render the register page.

/register => POST method: Add a new user to the database.

/login => GET method: Render the login page.

/login => POST method: Verify if the user exist and the credentials are correct.

Login credentials:

	Email: admin@admin
	Password: admin123

/panel => GET method: Check if the user are logged and show all the leads in a table.

Requirements

  1. The layout needs to be equals to the .psd file
  2. The layout needs to be responsive
  3. The name and email fields needs to be required
  4. The email field needs to be unique
  5. Needs to show error message
  6. All the user informations needs to be stored in the database