4. Cài đặt và kiểm thử hệ thống

4.1 Cài đặt

Heroku chưa cập nhập được bản mới nhất của app do không đọc được module react-youtube

Trang chủ:

Tab Timer:

Tab Group:

More button:

Youtube:
index.js
import React from 'react';
import ReactDOM from 'react-dom';
import Home from './Home';
import Timer from './Timer';
import Group from './Group';
import {
  BrowserRouter as Router,
  Route
} from 'react-router-dom'


ReactDOM.render(
  <Router>
    <div>
        <Route exact path="/" component={Home} />
        <Route path="/home" component={Home} />
        <Route path="/timer" component={Timer} />
        <Route path="/group" component={Group} />
    </div>
  </Router>,
  document.getElementById('root')
);
index.html
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
    <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
    <script type="text/javascript" src="http://netdna.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
    <link href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href="http://pingendo.github.io/pingendo-bootstrap/themes/default/bootstrap.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="/css/bootstrap.min.css">
    <script src="/js/jquery.min.js"></script>
    <script src="/js/bootstrap.min.js"></script>


    <!--
      Notice the use of %PUBLIC_URL% in the tag above.
      It will be replaced with the URL of the `public` folder during the build.
      Only files inside the `public` folder can be referenced from the HTML.

      Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
      work correctly both with client-side routing and a non-root public URL.
      Learn how to configure a non-root public URL by running `npm run build`.
    -->
    <title>Ambient Noise</title>
  </head>
  <body>
    <div id="root"></div>
    <!--
      This HTML file is a template.
      If you open it directly in the browser, you will see an empty page.

      You can add webfonts, meta tags, or analytics to this file.
      The build step will place the bundled scripts into the <body> tag.

      To begin the development, run `npm start`.
      To create a production bundle, use `npm run build`.
    -->

  </body>
</html>

4.2. Kiểm thử

Chương trình kiểm thử vẫn còn hạn hết cần thời gian hoàn thiện

results matching ""

    No results matching ""