Giter VIP home page Giter VIP logo

argos-realworld's Introduction

argos-realworld

This repository stores several versions of the database, API and client of the realworld app, for digital footprint measurements.

Included Versions

We've cloned and tweaked implementations of the realworld frontend and backend apps, so that they can work together and produce the exact same results (and pass the same tests).

You can use either one of the server implementations with either one of the frontend implementation.

Backend

Frontend

Requirements

Node, Docker

Installation

Choose a frontend and a backend, pass them as API_DIR and CLIENT_DIR environment variables, and call make install. For instance:

API_DIR=node-express CLIENT_DIR=react-redux make install

Starting The App

Choose a frontend and a backend, pass them as API_DIR and CLIENT_DIR environment variables, and call make start. For instance:

API_DIR=node-express CLIENT_DIR=react-redux make start

To run e2e tests (with Cypress running on the host machine, and opening a browser)

  • make start
  • make restore
  • make test-open

To run e2e tests (with a dockerized version of Cypress)

Setup dockerized environment

  • make setup-tests
  • make restore

Then run automated tests

  • make run-test

Notes for dev

  • in order to add a new front you should decorate html elements with data-test-id:
    • home-menu
    • new-post-menu
    • signin-menu
    • settings-menu
    • publish-button
    • post-comment-button
    • signin-button
    • logout-button
    • global-feed-link
  • modify code such that API root takes value http://localhost:4000/api when tests are run without Docker or http://api:4000/api when tests are run in Docker
  • front PORT should be 8080

argos-realworld's People

Contributors

brikou avatar djhi avatar floo51 avatar fzaninotto avatar julienmattiussi avatar pascalbes avatar pemoreau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

argos-realworld's Issues

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.