Giter Site home page Giter Site logo

oc-p6-snowtricks's Introduction

OC-P6-SnowTricks

OpenClassRooms 6th Project
Build a community website with Symfony

SonarCloud

Maintainability Rating Quality Gate Status Security Rating Bugs Code Smells Duplicated Lines (%)

Code Climate
Maintainability

Prerequisite

  • A Web Server (Apache, Nginx...)
  • Php 7.3
  • Composer
  • Yarn (npm install -g yarn)
  • A Database engine (Mysql, PostgreSQL...)
  • SMTP server accessible from the machine hosting the site

Installation

  • clone or download the project
  • go to project folder in a terminal
  • type composer install
  • type yarn install
  • type yarn encore production or yarn encore dev for development build
  • copy .env to .env.local and edit sql and mail parameters
  • configure a new Virtual host in your web server configuration with public/ folder as DocumentRoot

Now set the database :
php bin/console doctrine:database:create
php bin/console make:migration
php bin/console doctrine:migrations:migrate

  • To start with no data : php bin/console doctrine:fixtures:load --group=starting_users
  • You can add samples data : php bin/console doctrine:fixtures:load --group=samples_data

Secure your site

Admin access

By default, you can log as admin with :
Admin@snowtricks / Password at url /_sntrks_admin/

Other users

Samples data come with 2 additional users, both use Password as password :

  • john@snowtricks, a verified user, author of the 10 tricks
  • user1@snowtricks, a new unverified user

oc-p6-snowtricks's People

Contributors

osevohe avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

oc-p6-snowtricks's Issues

Setup basic tricks controller

Controller for tricks management.

  • addTrick, viewTrick and updateTrick method.
  • deleteTrick method call a template with a form displayed on homepage as a modal.

Bugs fix

  • Comment form errors not displayed when trying to add a new comment

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.