Giter Site home page Giter Site logo

sharecode's People

Contributors

ludonkey avatar

Watchers

 avatar  avatar

sharecode's Issues

User Table

Make the migration and migrate to create the user table into the database.

User Data

Modify the AppFixtures.php to add some fake users and load them.

Register

Use the console to make the registration form (move the code inside AuthController).
Change to use the bootstrap theme for the form.

DB Tables

Make the migration and migrate to create the tables into the database.

DB Data

Install doctrine/doctrine-fixtures-bundle and modify the src/DataFixtures/AppFixtures.php
Modify the load method to have some faked data in your db (using Faker) and load them.

ContentController

Create the controller ContentController.
Modify the Route annotation on the "index" method -> route /new & name="new"
Only people with granted ROLE_USER can access to this url (access_control into security.yaml).
You have to display a form to create a new content.
When the form is submitted and valid (all the data you need is correct),
create a new content in database and redirect to /.
Modify the navbar to add a link to this new feature.

HomeController

Create the controller HomeController.
Modify the Route annotation on the "index" method -> route /
Modify the "index" method of this controller to get all your content with findAll().
Modify the template home/index.html.twig to display them in the for loop.
Modify templates/base.html.twig to include the css & js of Bootstrap.
Add a bootstrap navbar.
Search (optionnal):
Modify the navbar to add a search form (with “search” input type text).
Modify the "index" method to check if there is a search parameter $req->query->has(‘search’).
If it’s present do a custom query with content like '%xxx%' where xxx is the search value.

Link local & remote

Modify your local project to add the origin to your GitHub project + push master to GitHub.

NavBar update

Update the navbar to display login/register when the user is anonymous and logout when he granted ROLE_USER

ManyToOne association

Modify your main entity to add the association to the User (ManyToOne) + make:migration + migrate
Modify the template home/index.html.twig to display the nickname for each item.

Login/Logout

Use the console to make the authentication (controller name AuthController).

Setup the database

Update the .env file to setup the database connection + create the database.

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.