Skip to content

ivan4ov4/TeamProblem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TeamProblem

This project is for Software University, module Software Techologies - defence. Techologies used for this project are PHP and his MVC (Symfony).

Team members

  • Ivan Simeonov - ivan4ov4
  • Daniel Vasilev - DanielVasilev98

Site map

  • / - view all posts

  • /register - register new user

  • /login - login register user

  • /logout - logout login user

  • /profile - view user info

  • /article/{id} - view article by id

  • /article/create - create article

  • /article/edit/{id} - edit article by id

  • /article/delete/{id} - delete artile by id

  • /admin/panel/ - view admin panel

  • /admin/user/ - view all registered users

  • /admin/user/edit/{id} - edit user by id

  • /admin/user/delete/{id} - delete user by id

  • /admin/category/ - view all categories

  • /admin/category/create - create new category

  • /admin/category/edit/{id} - edit category by id

  • /admin/category/delete/{id} - delete category by id

  • /edit/articles/ - view all articles

Using resources

How to install this project and how you can change it?

Tip: This steps are for windows machine

Preparation for installing the project.

Step 1: Download this repository.
Step 2: You need to xampp to install this project. Clik here to download.
Step 3: Install HeidiSQL. Clik here to download.

Project instalation

Open cmdon project directory. To fast open clik control + shift + right mouse button and find open command window here.

Chek you PHP.

C:\..dir..\TeamProblem>php -v

If php responce this.

Chec you PHP

PHP work successfully.

Install project

Step 1: Install doctrine and symfony tools.

C:\..dir..\TeamProblem>php composer.phar install

Image for working php

Step 2: Replace parameters.ymlon this file on app/config parameters.yml.

Image for working php

Step 3: Create database.

 C:\..dir..\TeamProblem>php bin/console doctrine:database:create

Image for working php

Step 4: Update database.

 C:\..dir..\TeamProblem>php bin/console doctrine:schema:update --force

Image for working php

Step 5: Start server.

 C:\..dir..\TeamProblem>php bin/console server:run

Image for working php

Add user roles

Start HeidiSql and connect to database. Create query to base with qery tab. Image for working php Click F9 to execute query. Image for working php

Go to localhost:8000 and register new user. Open HeidiSQL and change you user type. After register first admin user you will be able to change the type of all registered users from admin panel.

Go to roles table

Change user to admin role.

Go to roles table

Result on web page.

Go to roles table

Change to editor role

Go to roles table

Result to editor role

Go to roles table

Enjoy.