Skip to content

maulanaimam123/fyp-react

Repository files navigation

Numerical Deconvolutor of Analytical Profiles

Welcome to "Numerical Deconvolutor of Analytical Profiles".
This is my final year project (FYP) created to perform reverse-convolutional effect on profile data (SEM, TEM, etc.).
This project is build on React for the front-end and Python (Flask) for the back-end.

Getting Started

There are several steps to get this app running:

  1. Install NodeJS and Python
    Follow NodeJS and Python installation guides for Windows.

  2. Install React requirements
    Install React requirements by performing following command in the terminal/cmd out of the project directory:

    npm install
  3. Install Tesseract software
    Tesseract is a Optical Character Recognition (OCR) software to recognize text in the image.
    Please download and install Tesseract v.4.1.0 for Windows 10 64-bit installation from here
    Download the file with name of "tesseract-ocr-w64-setup-v4.1.0.20190314.exe".
    For more information, refer to unofficial guide here.

  4. Install Python requirements
    Install python requirements by opening terminal/cmd in the project directory and running this command:

    pip install -r requirements.txt

    Installing under virtual environment container is preferred.

  5. Install PyCasinoTools, PyMonteCarlo, and PyMonteCarloCasino2
    Download following repositories:

    api/dependencies

    Put the template files (VerticalLayers30.sim) under this directory:

    api/dependencies/pymontecarlo-casino2/pymontecarlo_casino2/templates

    This is just a regular .sim file with 30 vertical layers (grain boundaries), including substrates.
    If you need more number of regions, you can create the .sim file using CASINO v2.5.0 software and change this line:

    TEMPLATE_NUM_REGIONS = 30

    In the file "api/simulation.py" to the number of regions. Then run following command under the project directory:

    install-dependencies.bat
  6. Start!
    Finally! To run this projects, start the back-end by opening the terminal/cmd under this project directory and entering command below:

    start-server.bat

    After that, start the front-end by opening another terminal/cmd and entering this command:

    npm start

    You are good to go! Open a browser and go to the link: '/localhost:3000'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published