This is a template for testing a web developer's skill in: MongoDB with Mongoose, ReactJS, Node with Express
This is to test competence in: Asynchronous Functions, Promises, Mongoose, React Event Firing, Lifting State in React, HTTP.
You must install MongoDB and NodeJS
To start, first visit the interview--complete folder and:
npm install
mongod
npm start
Navigate to www.localhost.com:8888
and you should see the application. When you add a new property it should add that property directly to the database and live update the property list. The api for the mongo data for "properties" is at www.localhost.com:8888/api/properties
To start, first visit the interview--incomplete folder and:
npm install
mongod
webpack -w
npm start
For your convenience, I have added initial data in the /api/properties.js. This was added so that the user knows when they have successfully connected to the database. If you accidently keep this up and you have too much data to test. Use mongoose.connection.dropDatabase()
to drop the data.
There are only 2 files that need to be eddited for completion:
src/container/App.js
and api/properties.js
The developer may need to navigate to the two other container:
AddProperty.js
and PropertyList.js
, but they DO NOT need to be editted.
The developer has access to bluebird, axios, and of course fetch.