Skip to content

Nestvold/Stacc-KYC-Assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stacc code challenge 2021

Assignment description

I did a fullstack approach, frontend (React + acios), backend (java + spring framework) and a cloud based storage in MongoDB.

Started by brainstorming and doing some scetches. After some time I decided that a visual architecture would help. By using Lucidcharts I managed to draw an arcitecture.

Arcitecture

After doing this I decided that the most important aspect of the solution would be to get the frontend up and running becase Stacc alredy had a working API up and running at "https://code-challenge.stacc.dev/api/".

Design

When designing this I decided that a SPA was the smartest option as this will work as an search engine within the PEP database.

I decided to use FIGMA as the design tool of my choice. By making components, deciding colors and fonts, the implementation would be easier.

Intro page

  • Clean and simple
  • Intuitive
  • Inspired colors and font from Stacc webpages

Arcitecture

Search result page

  • Again clean and simple
  • Accordions to show result
    • Should expand on click
    • Duisplay all information about the search object

Arcitecture

How to run the project

Frontend

  1. Navigate to /Stacc-KYC-Assignment/frontend
  2. Install dependencies: npm install
  3. Start the application: npm run dev

Backend

  1. Build Project
  2. Navigate to /Stacc-KYC-Assignment/backend
  3. Install dependencies: mvn clean install
  4. Run project: mvn spring-boot:run

Database

  1. Install pymongo: python3 -m pip install pymongo
  2. Add your IP-address to known ip addresses on: https://cloud.mongodb.com/
  3. Automaticly connect to db through backend

Comments

Design

Even though I could easily have added NavBar and Footer etc. I did not see that necessary since it would all just be superficial with no real functionality. My solution is clean and simple

Starting with Frontend

As Stacc alredy provided me with a working API, I decided to focus on my weakness, i.e. Frontend. This is because for me setting up the API is not as challenging as creating a working frontend application.

Styled components

I really like the aspect of a Single File Component and styled component does exactly that. Here one can style the comonents within the same file in a CLEAN manner.

DB

The reason I went with MongoDB as the DB was just because I wanted something remote and in the cloud when working with the project. Used python to initialize the db and populate it with the data from pep.csv to show that I can handle python as well.

Backend

The reason I went with java + Spring Framework was just to show that I can handle java. It would probably be easier to just set it up using Flask, however I used python to populate the data, so java remains.

About

This is a code assignment done for Stacc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published