AlexsLemonade / refinebio-frontend

Frontend app for refine.bio
https://www.refine.bio
Other
7 stars 7 forks source link

Refine.bio Frontend

forthebadge

This project was bootstrapped with Create React App and later migrated to NextJS

Table of Contents

Getting Started

Requirements

For development, you will need Node.js and Yarn package manager installed on your environment.

If you are using a Mac, you can install Yarn through Homebrew package manager. This will also install Node.js if not already installed.

brew install yarn

Initialize

In the project directory, run:

yarn install

Develop

In the project directory, run:

yarn run dev

Production

yarn run build

yarn run start

Deployment

Deploys are triggered automatically by pushing to the master or dev branches.

Development

Git Workflow

This project uses a feature branch based workflow.

New features should be developed on new feature branches named in the following format: [username]/[fancy-branch-name]. Pull requests should be sent to the dev branch for code review. Merges into master happen at the end of sprints, and tags in master correspond to production releases.

JavaScript

Framework

This project is using React as a frontend framework coupled with Redux for state management.

Also it get's server rendered with NextJS.

Formatting

We use Prettier, an opinionated code formatter, for JS code formatting. Whenever a commit is made, Prettier will automatically format the changed files. Prettier can also be integrated into many text editors.

Styling

Executive Dashboard

Our executive dashboard is used for monitoring the health and state of our system. The dashboard can be viewed at the /dashboard route of the frontend.

Running Locally

If you have the refine.bio backend running locally, just run the script with the variable REACT_APP_API_HOST pointing to the local API. For example:

REACT_APP_API_HOST=http://localhost:8000 yarn run dev