Giter Site home page Giter Site logo

magebit-task-2-and-3's Introduction

megabit-task-2-and-3

Magebit pineaplle task

Prerequisites

  1. Node.js + npm
  2. PHP
  3. MySQL
  4. Apache server

Installing

1. Clone Repo

git clone https://github.com/Omarzikry/magebit-task-2-and-3.git

2. Go inside cloned repo

cd magebit-task-2-and-3

3. Install all dependencies (make sure nodejs with npm is installed on your machine)

npm install

4. Run development server

npm start

Creating the MySQL Database

1. Open a new terminal and run the following command

mysql -u root -p

2. Create a database by running this command

mysql> create database reactdb;

3. Add SQL table to your database

mysql> use reactdb;
mysql> CREATE TABLE `contacts` (
  `id` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
  `email` varchar(100) NOT NULL,
  `timeStamp` varchar(100),
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

Build (PHP doesn't work unless on production)

1. Build the app

npm run build

2. Go to the build folder

cd build

3. Run php server

php -S 127.0.0.1:8080

Authors

magebit-task-2-and-3's People

Contributors

omarzikry avatar

Watchers

James Cloos 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.