Coder Social home page Coder Social logo

finervision's Introduction

FINERVISION TEST

CLIENT

  • Client app is built using TypeScript React and React hooks, UI is rendered with Styled Components
  • User can click the header to expand the form or navigate to the next form section by clicking "Next"
  • Form validation is conducted for the section when the user clicks "Next" to navigate to the next section. If form inputs are not valid, user will be prompted to change the inputs
    • Full form validation is also conducted in the bottom section when the user clicks "Next", this ensures that all the input values are valid before sending the data to the server
    • All the fields, except for the Final comments, are marked as required fields. User who does not input a valid value will not be able to proceed
  • The UI is developed to be responsive, so the Form and its elements will expand or shrink accordingly based on screen sizes

SERVER

  • Server app is built using Typescript with Express
  • An API endpoint (/user/create) is created for posting data to the server
  • Client input validation is performed in the Controller function, which ensures that the input values are valid before sending them to the database. Sequelize also validates input values before accepting them
    • Email duplication check is also added - to prevent the same user from registering multiple times

HOW TO START THE APP

Client

  1. From the repo root folder, cd client to go into the client folder
  2. Install dependencies
npm install
  1. Set up the .env file for client, following the example in the .env.example file. You may use http://localhost:3001 for the API endpoint in local environment.
  2. Start the client app in http://localhost:3000 in development environment
npm run start
  1. Build app in production mode
npm run build

Server

  1. From the repo root folder, cd server to go into the server folder
  2. Install dependencies
npm install
  1. Set up the .env file for server, following the example in the .env.example file. You may use 3001 as the server port if you wish.
  2. Start the server in http://localhost:3001 by running the command below. The CLI below will run tsc which compiles TypeScript into JavaScript and uses nodemon to run index.ts file.
npm run start

finervision's People

Watchers

Francisldn 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.