Git Product home page Git Product logo

codflix's Introduction

Cod'Flix project

Setup

  1. You have to use a local server such as Wamp or Mamp
  2. Pull the repo in the www/ directory of your local server
  3. Import codflix.sql in your database
  4. Follow the address of your repo. For example, if your repo is in www/codflix/, the URL should be http://127.0.0.1/codflix

Database

You can configure your database access in the file model/database.php. Simply update the default values in the init_db() function:

$host = $_ENV['CODFLIX_DB_HOST'] ?? 'localhost';
$dbname = $_ENV['CODFLIX_DB_NAME'] ?? 'codflix';
$charset = $_ENV['CODFLIX_DB_CHARSET'] ?? 'utf8';
$user = $_ENV['CODFLIX_DB_USER'] ?? 'root';
$password = $_ENV['CODFLIX_DB_PASSWORD'] ?? '';

For example, if you want to change the database password with "mypassword", update the $password variable:

$password = $_ENV['CODFLIX_DB_PASSWORD'] ?? 'mypassword'; // just update at the right side of the ??

codflix's People

Contributors

laurierrose avatar github-classroom[bot] avatar

Watchers

 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.