Giter Club home page Giter Club logo

climatemind-frontend's Introduction


Logo

Climate Mind - Frontend

Explore the docs »

ClimateMind Cypress.io

Thank you for your interest in contributing to ClimateMind. Within this document, you'll find instructions to set up your development environment and information that may be useful when you create a pull request.

Report Bug · Request Feature


Prerequisites

Before you consider participating to this project, make sure you are familiar with the following topics.

  • HTML / CSS / TypeScript
  • Node.js
  • React
  • cypress / jest

Setup a Development Environment

To properly work at the frontend application, you'll need to setup the backend environment first. Have a look at the documentation here and return once you have that up and running.

Now to get started with setting up a frontend environment, make sure you have a recent version of Node.js installed, as well as Docker desktop.

Clone the repository. It is recommended to not use spaces in your folders name, as it may raise problems in realation to docker. Afterwards you can go into the project folder and install all the required npm packages.

git clone https://github.com/ClimateMind/climatemind-frontend

// cd climatemind-frontend
npm install

Now you can start the application, but make sure that the backend containers are running in docker desktop, otherwise the following command might fail. In your project older, execute the command below, based on the operating system you use.

npm run docker:dev:run:pc     (windows)
npm run docker:dev:run:mac    (mac)
npm run docker:dev:run:linux  (linux)

With both the backend and frontend running, you should be able to open the website (standard is http://localhost:3000) and start working on your first issue!


Open a Pull Request

Once you have a possible solution for an issue, you can create a pull request to get it merged into the develop branch. But before you do that, you should run the command npm run prettier, which will format your code based on some guidelines to ensure a similar style throughout the codebase.

Once the pull request is created, automated tests will run to ensure that the changes won't break any existing features. You can run these tests also in your local environment, if you want to use it for debugging or verification before pushing new changes. The commands you would consider in that case are npm run cypress and npm run test. The cypress tests take quite a long time (~ 10 min). If you know that a specific file resulted in errors and you want to test if those errors are resolved, you can run the specific file with the command npm run cypress -- --spec <path-to-file> (eg. path: 'cypress/integration/register.spec.ts').

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.