formant-take-home's People
formant-take-home's Issues
POC
Details
- uses turbopack / next.js and tailwind
- requires node
18.2.0
andyarn >= 1.22.19
- uses
Zod
model / types and react-form-hook with zod to validate form input on UI and API
To run:
git clone https://github.com/useafterfree/formant-take-home
cd formant-take-home
yarn install
yarn run dev
Tasks DONE
-
The server should have one REST POST endpoint. Imagine you are submitting some robot description info ( name, number of arms, description ) to create an entity.
-
You should have a GET endpoint that returns a list of robots
-
No need to have a database to store server data, you can just use data structure in memory.
UI". See: MemoryStore:pages/api/robots
-
The frontend should show a form that submits data to the REST endpoint and the list of all robots beneath it after submitted.
-
Your react components should have their props specified as typescript interfaces and should largely be typed
-
Create some sort of abstraction that makes the data store easy to replace witha. different kind of backend
-
The form should be centered on the screen and styled with some CSS you write yourself to make it look nice in appearance
TODO
- Run the app in a Dockerfile (if you run out of time, feel free to skip this )
- Show simple SQL migration scripts to create database tables go for it (if you run out of time, feel free to skip this )
MemoryStore
class uses the prisma interface, so it can easily be swapped out: https://www.prisma.io/docs/getting-started/quickstart#2-model-your-data-in-the-prisma-schema
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.