A full stack exercise in retreiving data from a file.
This project uses docker-compose to build and run on you local machine. (refer to this guide )
simply run from the root directory
docker-compose upand then navigate to localhost
if you want to force a new build after some code changes use the --build flag
docker-compose up --buildThis project has a clear separation between front-end and back-end. Despite this uses nodejs, typescript and yarn for both.
Navigate to the api folder, install dependencies with yarn and start the application using yarn start.
It uses express for the server and uses io-ts for validation of the csv file, for actual reading the file it uses papa parse
You can test that everything is good by using this curl
❯ curl --request GET \
--url http://localhost:3001/health
{"currentTimeUtc":"2019-08-01T13:11:22.897Z"}Navigate to the web folder, install dependencies with yarn and start the application using yarn start. Then navigate to localhost:3000
This project uses create-react-app with hooks and rsuite for the components
- the validation of
io-tsis only present in the back-end, it would be cool to have it also in the front-end and maybe have the ability to share models between the two app (this is a build issue) - the UX of the client is pretty much horrible :P
- no tests in both applications 😢
- Error handling is very crude where is present