Git Product home page Git Product logo

challenge_leantech_zenquotes's Introduction

¡Lean Tech ZenQuotes challenge!

This challenge will probe why you should hire me =)

Below are the instructions to install and run the project...

Before we begin...

Make sure you have already installed git, composer, node >= 18.19 and php >= 8.2 (with sqlite support)

Step 1: Clone the repository

Open a terminal console and run

git clone https://github.com/mcanepa/zenquotes

Then enter directory

cd zenquotes

Step 2: Install project and dependencies

Once inside directory run:

composer install

Step 3: Create env file

At root level, there is a file named .env.example. Duplicate that file as .env

Now, generate an application key

php artisan key:generate

Step 4: Create database and tables

Run

php artisan migrate

It will prompt you to create the database, answer YES

Now edit .env file and change

CACHE_DRIVER=file

to

CACHE_DRIVER=database

And we are ready to seed the database with some data!!

php artisan migrate:fresh --seed

Step 5: Run the project

We are closer to see the app!! just a couple commands...

Run

npm install

and then

npm run build

And yes, we finally serve the project!!

php artisan serve

And go to the browser at

http://127.0.0.1:8000

And that's it!!

You can register as a new user and then go to http://127.0.0.1:8000/today to see an inspirational quote!!!

Tests

You could test the app by running

php artisan test --testSuite=Unit

P.S.: More tests coming soon!

challenge_leantech_zenquotes's People

Contributors

mcanepa avatar

Stargazers

Georgi Hristov avatar

Watchers

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