Git Product home page Git Product logo

isadays / livre Goto Github PK

View Code? Open in Web Editor NEW

This project forked from patrikrufino/livre

0.0 0.0 0.0 9 MB

É uma plataforma de compra, venda e troca de livros usados. Os usuarios da plataforma podem disponibilizar seus livros com opção de compra ou troca e os interessados podem solicitar o livro. Apos demonstrar interesse no item, eles podem trocar mensagens para combinar como sera feita a troca ou compra do livro.

License: MIT License

PHP 12.99% CSS 61.55% JavaScript 25.46%

livre's Introduction

Livre

Course Conclusion Work - Systems Development.

Free, is a web application made in PHP on an MVC framework, which allows people to donate books they no longer need.

How to use

Dependencies

  • PHP >= 8
  • Git
  • Composer >= 2
  • Preferably Mariadb, but you can opt for others, because the project uses PDO by default.

Running the project

1 - Clone this repository on your PHP server

git clone https://github.com/isadays/livre.git

2 - Open the folder in your IDE of choice.

3 - Configure the file Config.php

/*
 * Substitute for your localhost corresponding to your project folder
 * */ 
const ROOT = "http://localhost/livre/";

/*
 * Name of the site
 * */
const SITE = "Livre";

/*
 * Config you data
 * */
const DATA_LAYER_CONFIG = [
    "driver" => "mysql",
    "host" => "localhost",
    "port" => "3306",
    "dbname" => "livre",
    "username" => "root",
    "passwd" => "",
    "options" => [
        PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8",
        PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
        PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ,
        PDO::ATTR_CASE => PDO::CASE_NATURAL
    ]
];

4 - Run the migrations

In path "/migrations", you can find the migration data of the project.

You can run it on your favorite database

5 - Install composer on the project

composer install

5 - Ready!

Now just access your project's URL.

Example:

http://localhost/livre/

livre's People

Contributors

patrikrufino avatar isadays 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.