ludonkey / sharecode Goto Github PK
View Code? Open in Web Editor NEWIt's a simple Symfony web project where USERs can share CODE.
It's a simple Symfony web project where USERs can share CODE.
Make the migration and migrate to create the user table into the database.
Modify the AppFixtures.php to add some fake users and load them.
Use the console to make the registration form (move the code inside AuthController).
Change to use the bootstrap theme for the form.
Make the migration and migrate to create the tables into the database.
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.
Use the symfony command line tool to create the project LTS version.
Create the entities (but not the User).
Add a field to ask to the new user to retype his password
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.
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.
Modify your local project to add the origin to your GitHub project + push master to GitHub.
Update the navbar to display login/register when the user is anonymous and logout when he granted ROLE_USER
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.
Use the console to make the user.
Use the console to make the authentication (controller name AuthController).
Update the .env file to setup the database connection + create the database.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.