Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions FEEDBACK.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# Feedback

1. Your team:
2. Name of each individual participating:
3. How many unit tests were you able to pass?
1. Your team: Xavier Mendez
2. Name of each individual participating: Just me
3. How many unit tests were you able to pass? 6/12
4. Document and describe any enhancements included to help the judges properly grade your submission.
- Example One
- Example Two
- Example Three
- Added routes and API endpoints for the test cases given
- made the test case functionality scalable to more future cases through abstracting to searching and providing stats on variables


5. Any feedback for the coding competition? Things you would like to see in future events?
this was a really fun challenge!

This form can also be emailed to [codingcompetition@statefarm.com](mailto:codingcompetition@statefarm.com). Just make sure that you include a link to your GitHub pull requests.
24 changes: 20 additions & 4 deletions nodejs/application.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
const SimpleDataTool = require("./simpleDataTool");
import express from 'express';
import http from 'http';
import * as routes from './routes/routeIndex.js';

console.log("I'm working");
console.log("API Booting up!");

const controller = new SimpleDataTool();
controller.loadSimpleModels();
var stateFarmClaimsServer = express();


stateFarmClaimsServer.use('/agents', routes.agentRoutes());
stateFarmClaimsServer.use('/disaster', routes.disasterRoutes());
stateFarmClaimsServer.use('/claims', routes.claimRoutes());
stateFarmClaimsServer.use('/states', routes.stateRoutes());




var server = http.createServer(stateFarmClaimsServer)
var port = 443// use env file later process.env.PORT
server.listen(port, ()=>{
console.log('server running at port '+port);
});
2 changes: 1 addition & 1 deletion nodejs/data/sfcc_2023_claims.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"severity_rating": 9,
"estimate_cost": 200430.52,
"agent_assigned_id": 98,
"claim_handler_assigned_id": 19
"": 19
},
{
"id": 7,
Expand Down
Loading