Skip to content

EpiBuilder's frontend to provide interactive linear B-cell epitope data visualization and navigation

License

Notifications You must be signed in to change notification settings

bioinformatics-ufsc/epibuilder-frontend

Repository files navigation

epibuilder-frontend

The epibuilder-frontend is the graphical user interface for the epibuilder-core project, developed using Angular 12. This repository contains the source code for the frontend part of the application.

Requirements

To contribute to the project, you'll need to set up your local environment. Here are the requirements to run the project:

  • Node.js (version 14 or higher)
  • NPM (Node.js package manager)
  • Angular CLI (version 12 or higher)

Install Node.js and NPM

  1. Download Node.js:

    • For Windows and macOS, go to the Node.js download page and download the appropriate installer for your operating system.
    • For Linux, you can install Node.js using a package manager, depending on your distribution. For example:
      • Ubuntu/Debian:
        sudo apt update
        sudo apt install nodejs npm
      • CentOS/RHEL:
        sudo yum install nodejs npm
      • macOS (via Homebrew):
        brew install node
  2. The Node.js installation includes NPM (Node Package Manager), so you don’t need to install it separately.

  3. Verify the installation: After installation, open a terminal (or Command Prompt on Windows) and run the following commands to verify that Node.js and NPM are installed correctly:

    node -v
    npm -v
    

Install Angular CLI

If you don't have Angular CLI installed, you can install it by running the following command:

npm install -g @angular/cli@12

Running the Project Locally

  1. Clone the repository:
git clone https://github.com/bioinformatics-ufsc/epibuilder-frontend.git
  1. Navigate to the project directory:
cd epibuilder-frontend
  1. Install the project dependencies:
npm i
  1. After the dependencies are installed, start the development server:
ng serve
  1. Open your browser and visit http://localhost:4200 to view the project.

Explanation of the Folder Structure:

  • src/app/: Contains the main application code.

    • auth/: Components and services related to user authentication (e.g., login, registration).
    • components/: Reusable UI components that can be used across the application.
    • models/: Data models, including interfaces and classes that represent the data structures used in the app.
    • pages/: Page-level components, each of which typically corresponds to a route in the application.
    • services/: Services that handle business logic and data interaction (e.g., API calls).
    • app-routing.module.ts: The routing configuration that maps routes to page components.
    • app.module.ts: The main module of the Angular application that imports necessary modules (including the AppRoutingModule for routing).
  • angular.json: Configuration file for Angular CLI, which manages the build and development settings.

  • package.json: Contains the project's dependencies, scripts, and other configurations related to npm.

  • tsconfig.json: TypeScript configuration file for the project.

Contributing

If you'd like to contribute to the project, please follow the steps below:

  1. Fork the repository.
  2. Create a new branch for your feature:
git checkout -b my-feature
  1. Make your changes and commit:
git commit -m "Description of my changes"
  1. Push your changes to your fork:
git push origin my-feature
  1. Open a pull request on the main repository for your changes to be reviewed and merged.

About

EpiBuilder's frontend to provide interactive linear B-cell epitope data visualization and navigation

Topics

Resources

License

Stars

Watchers

Forks