Skip to content

SamiHas/TalentStandard

Repository files navigation

Talent Standard Task Code Repository

This project will help interns at MVP Studio to understand how ReactJs, C# Web Api, MongoDb is used in Talent Code Architecture.

Please follow the instructions below to understand how to get started. If you have any questions, please check if it has been asked on QuestionHub or raise the question there to get support.

Standard tasks

  • Module 1 : Talent profile page
    • LinkedIn url & GitHub url
    • Description
    • User Details Component
    • Address
    • Nationality
    • Languages
    • Skills
    • Work experience
    • Visa status
    • Job seeking status
    • Photo upload

Click here for Module 1 details.

  • Module 2 : Talent Feed page
  • Front-end
    • Add ajax calls to retrieve data from the controllers
  • Back-end
    • Build action methods in controllers and in services to fetch data from the database

Click here for Module 2 details.

Guides to get started

React tutorials/resources

React coding examples in ReactExamples.zip: *ReactHelloWorld.html: Printing hello world using React *ReactTimeline.css: CSS File for Timeline example *ReactTimeline.html: React components and container example *ReactTimelinePassObject.html: Passing a prop as an attribute and javascript object example *ReactTimelinePassArray.html : Passing an array of javascript objects example

Do’s and don’ts

See the coding guidelines and FAQ
Please try not to add styles inside the jsx file. Instead, please add your styles to TalentTheme.css.
Please use ES6, jsx, use state
Limit your use of javascript or jQuery - jQuery is required for AJAX, but very little else.
Use AJAX to get/send data to the controller
Please use plain javascript not typescript

Note : Make sure that you have Visual Studio 2017 installed in your computer. Visual Studio 2015 does not work with ReactJS

Install react, babel, webpack, js tokens and react tags:

  • Find the folder that contains webpack.config.js in the solution explorer
  • Right click on the folder and select 'Open Folder in File Explorer'
  • Open command prompt (windows + R, type cmd) and go to the folder that contains webpack.config.js (E.g: cd C:\Talent\Talent\Talent.WebApp\Scripts\react) Install npm util packages: npm install
  • Check webpack version (make sure it's 4.5.0): webpack -version

Launch Talent project

Check the wiki for more details.

  • Get the latest source via Source Control Explorer
  • Run webpack: cd C:\Talent\Talent\App\Talent.App.WebApp\wwwroot\js\react npm run build
  • Launch Talent.WebApp project in Visual Studio. Register an account using your email address and log in.

Project Structure

Check the wiki for more details.

  • Web Application:
    • Talent.WebApp : All frontend files are located here
  • Microservices:
    • Talent.Services.Identity : backend functions related to Login/Logout
    • Talent.Services.Profile : backend functions related to Profile
    • Talent.Services.Talent : backend functions related to Talent Matching, Jobs

React tips

  • Common coding mistakes using jsx
  • Class names: class (html) => className (jsx), tabindex (html) => tabIndex (jsx)
  • Require closing parent element or fragments: https://reactjs.org/docs/fragments.html
  • Jsx Closing tags differ from html tags, you must have a closing tag for images and inputs: <img></img>, <input</input>
  • Forgetting to turn on webpack : npm run build
  • Forgetting to clear the cache

How to connect to the database

Click here for more details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published