Git Product home page Git Product logo

my-books-server's Introduction

My Books (Server)

Setup DEV environment

Target platform :Windows 10

Requirements

  • PHP >= 7.2.5 installed and accessible in the PATH
  • MySql

Check version :

# check PHP version and CLI accessibility
$ php -version
PHP 7.4.27 (cli) (built: Dec 14 2021 19:52:13) ( ZTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

# check MySQL version and CLI accessibility
mysqld --version
C:\dev\tools\mysql-8.0.27-winx64\bin\mysqld.exe  Ver 8.0.27 for Win64 on x86_64 (MySQL Community Server - GPL)

Installation

  • install composer locally into folder ./tools. Jump to the ./tools folder and enter the commands described in the Composer Install Page

For example :

$ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
$ php -r "if (hash_file('sha384', 'composer-setup.php') === '906a84df04cea2aa72f40b5f787e49f22d4c2f19492ac310e8cba5b96ac8b64115ac402c8cd292b8a03482574915d1a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
$ php composer-setup.php
$ php -r "unlink('composer-setup.php');"
  • test with
$ cd <PROJECT_ROOT>
$ php tools/composer.phar --version
Composer version 2.2.3 2021-12-31 12:18:53
  • install PHP dependencies with Composer
$ cd <PROJECT_ROOT>/src
$ php ../tools/composer.phar require ....package

Usage

Web Server

  • start the Web server embbeded in PHP
$ cd ./src
$ php yii serve 
# To set server port: php yii serve --port=8888
  • to stop the server : Ctrl+C

MySQL

Make sure MySQL bin folder is in the $PATH environment variable.

  • start DB
$ mysqld --console
  • stop DB
$ mysqladmin -u root shutdown

my-books-server's People

Contributors

raoul2000 avatar

Watchers

 avatar  avatar  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.