Giter Site home page Giter Site logo

tubes3_13520003's Introduction

DNATrain

Hanarebanare no machi o tsunagu ressha wa itte shimatta ne

Table of Contents

Description

DNATrain is a web application for diagnosing sickness on a patient by doing pattern matching on patient's DNA with the pattern on Database.

Tech Stacks

  • Front-End : React
  • Back-End : Golang with Echo
  • Database : MySQL on Planetscape

Requirements

  • Node (Node 16)
  • Golang (go 1.18)

Folder Structure

└── src                     // All code directory
    ├── backend             // Backend code directory
    │   ├── libs            // Custom libs used by backend
    │   └── web             // Backend web module
    │       ├── database
    │       ├── handler
    │       ├── model
    │       ├── router
    │       └── server
    └── frontend_next       // Frontend code directory
        ├── components
        ├── pages
        ├── public
        └── styles

Usage

How to start server locally

Backend

  1. Change directory to src/backend
  2. Duplicate .env.example and rename it into .env, then put the DB_URL using your own url, example: root@tcp(localhost:1234)/dnatrain?parseTime=true. dnatrain is the name of the database. make sure the last argument ?parseTime=true is used;
  3. Install golang packages using go get command
  4. Run server using go run main.go
  5. Check running server on localhost:$PORT

Frontend

  1. Change directory to src/frontend_next
  2. Install node packages using npm i command
  3. Open axios.js in src/frontend_next/lib, locate variable baseURL, change the string to http://localhost:$PORT and replacing $PORT with the actualy port number on the .env file (check Backend section)
  4. Run server using npm run dev
  5. Check running server on localhost:$PORT

Local Database setup

Adjust to the existing local DBMS if necessary

  1. Create new database named dnatrain - make sure the name of the database is the same as written on DB_URL (Refer to backend section).
  2. Create table named penyakit with attribute name with type varchar(255) (string) and attribute dna with type varchar(255).
  3. Create table named test with attribute tanggal with type datetime, attribute name with type varchar(255), attribute nama_penyakit with type varchar(255), kecocokan with type double, and attribute cocok with type boolean

Additional notes

The Tambah Test requires the list of penyakit (diseases) to not be empty, therefore, add any penyakit in Tambah Penyakit page before proceeding to do Tambah Test

Developer

  • Dzaky Fattan Rizqullah (13520003)
  • Yohana Golkaria Nainggolan (13520053)
  • Rifqi Naufal Abdjul (13520062)

tubes3_13520003's People

Contributors

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