A full stack application using react & node from the "Sundaes on Demand" app in the Udemy course "Testing Library for React" to dive into jest & react-testing-library concepts.
- Clone or fork the course repository
cd
into thesundaes-on-demand
directory (where this README is located).npm i && npm run server-install
to install both client & server dependencies.
Run npm run dev
to run both client and server. The server will be found at localhost:3030 while the client at localhost:3000.
In case you reeive the following error: Node / Express: EADDRINUSE, Address already in use - Kill server
sudo pkill node
Server routes:
GET /scoops
andGET /toppings
return sundae options (array of objects with keysname
andimagePath
)POST /order
returns a random order number (does not process order)- images via static
/images
directory.
To test, run npm test
for both client & server.