Giter Site home page Giter Site logo

management's Introduction

Getting Started

Prerequisites

What things you need to install the software and how to install them.

  • PHP 7.4.0 (or higher)
  • composer
  • mysql 5.7 (or higher)
  • Elastic 7.6.0 (or higher)

Another alternative via docker:

Run docker and connect to container

  docker-compose build
  docker-compose up -d
  docker-compose exec php sh

Installation

Run the command below:

git clone https://github.com/oussama-aitmi/management
cd management
composer install
(if you not using docker then run the local server) php -S localhost:8000 -t public or (symfony server:start)

To initialize the database, set the DATABASE_URL variable in the .env file with your database server URL:

DATABASE_URL=mysql://root:root@mysql:3306/symfony?serverVersion=5.7

then run the following commands:

php bin/console doctrine:database:create

php bin/console doctrine:migrations:migrate

The project comes with a data fixture for all entitities, to execute them, run the following line command:

php bin/console doctrine:fixtures:load

Execute TestUnit:

./vendor/bin/phpunit tests/

Example conecting to Api and Consuming Resources via JWT RESTful API

Register to Api

{
  "email":"email", 
  "firstName":"firstName",  
  "password": "password",
  "confirm_password": "password" 
  }
Output format with HTTP Response Code: 201
    HTTP/1.1 201
    Content-Type: application/json

{
    "token": "token"
}

Conecting to Api

{
  "email":"[email protected]", 
  "password": "management"
}
Output format is an Access Token valid for 86400 seconds (24 hours). - HTTP Response Code: 200
    HTTP/1.1 200
    Content-Type: application/json

{
  "token":"token"
}

...

management's People

Contributors

oussama-aitmi avatar dependabot[bot] avatar

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.