sharepoems-sf's People
sharepoems-sf's Issues
DB Tables
Make the migration and migrate to create the tables into the database.
Create the entities
Create the entities (but not the User).
NavBar update
Update the navbar to display login/register when the user is anonymous and logout when he granted
ROLE_USER.
Link local & remote
Modify your local project to add the origin to your GitHub project + push master to GitHub.
Register
Use the console to make the registration form (move the code inside AuthController).
Change to use the bootstrap theme for the form.
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.
Create the Project
Use the symfony command line tool to create the project LTS version.
Choose your domain name (e.g toto.com), add the entry into the /etc/hosts file
Create a virtual host (sites-available) for your new project and enable this site (a2ensite)
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).
User Data
Modify the AppFixtures.php to add some fake users and load them.
User Table
Make the migration and migrate to create the user table into the database.
Setup the database
Update the .env file to setup the database connection + create the database.
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.
Create the User
Use the console to make the user.
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.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.