Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

RickDT/pmid

Repository files navigation

Parallel Markets job application code challenge. (see assignment)

Tech

This project uses:
React on the Frontend
Next.js for quick, fullstack JS app development
Formidable for handling file uploads in Node
SQLite for local relational db
Knex for working with the DB
Tailwind CSS For quick, functional styling

Getting Started

Install JS deps:

yarn install

Install Knex and run migration to setup sqlite db

yarn global add knex
knex migrate:latest

Run in Dev mode

yarn dev

Open http://localhost:3000 with your browser to see the result.

Finding your way around the codebase

The Frontend is primarily in pages/index.js

The API is in pages/api (a Next.js pattern).

  • upload.js handles file uploads
  • investor.js handles investor submission

TODO

There is a lot left to do!

Frontend

  • Use Formik to make the form a lot more user-friendly and easier to maintain in the code
  • Form validation (use Yup)
  • File upload progress
  • Step-wise progress indicator as the FE uploads the file and THEN sends in the investor data
  • Error states

Backend

  • Validation
  • Use collision-safe file naming on the uploads
  • Upload to a safe area, assume malicious files

Fullstack

  • Authentication
  • Authorization

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published