A sample app built using Sailsjs for its backend API and React as its frontend framework, with Redux for state management and Jest for tests, combined with Enzyme. This part of technical test for a front-end position that I was invited to, which I ended up turned down.
- Navigate to the backend folder, and run
npm install
oryarn install
- To start the app, run
sails lift
. The server should be running on port1337
by default - To add default data, you need to use sent a
POST
request using POSTMAN or curl to this endpoint:http://localhost:1337/api/defaultData
- Navigate to the backend folder, and run
npm install
oryarn install
- Make sure to edit the API endpoint, if you've run the sails server in different port other than
1337
. The endpoint can be change insrc/api/endpoints.js
.
npm start
npm test