Git Product home page Git Product logo

labstep-test's Introduction

Labstep Test

The purpose of this exercise is to create a timeline with posts and experiments along with some comments.

What you need to do

  1. Install and run the provided server

    npm install 
    npm start
    

or if you are using yarn:

```
yarn
yarn start
```
  1. Complete all the TO-DOs. Search for 'TO-DO:' to quickly find them. They all live under /src. They are also summarised below: (a) In Experiment.js:
    • Write some code to show only verified comments (comments have a verified field of type boolean)
    • Write some code to show the total number of times the verified comments have been shared (use the timesShared field to calculate the total)
    • Append a fullName ( concatenation of first and second name ) field to the author of your verified comments
    • Style the comment-bar according to specs (b) In Posts.js:
    • Write the HTML and CSS to display the post according to specs (c) In Navigation.js:
    • Fix the code to show the timelines that are associated with the above userId
  2. Write tests to test your code. An example can be found in '/src/tests/example.test.js'. To run your tests: npm test or yarn test
  3. You should deliver your solution as a git repository, preferably hosted on GitHub.

Things you should know

  1. All css lives under scss. You may use sass/scss styles.
  2. The specs (designs) can be found under folder /specs. There are 2 views; one for desktop screen and another for mobile. The styling should be close to the designs but it doesn't have to be pixel perfect or use the exact same colors.
  3. All images needed (icon-edit.svg and icon-user.svg) live under /public
  4. All data used lives in /src/api/index.js. You can view this file but you can't change the data in it.
  5. The two things you need to know about React and are different than normal HTML is that instead of using ‘class’ on the html elements you should use ‘className’. Also if you want to use javascript (e.g. to display a variable) in the html you should use curly brackets {} (e.g. <div>{ user.name }</div> Or <div>{ numberOfComments(user) }</div>

What we are looking for:

  1. Correctness
  2. Readability
  3. Good code design

Libraries:

You may not use any external libraries

labstep-test's People

Contributors

tiimgreen avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.