This is a web development assessment from youX.
- Turn on MongoDB Compass and connect to mongodb://localhost:27017.
- Create a new database by clicking +, then use youX for database name and universityList for collection name.
- After creating database, importing data from data.json.
- Turn on two different terminal windows for running backend and frontend simultaneously.
- Use one of the terminal to navigate to the backend folder and run
npm i
to install all dependencies, then runnode app.js
to run the server and connect to the database. - Use another terminal window and navigate to the frontend folder and run
npm i
to install all dependencies, then run "npm start" to render the frontend. - Ensure that MongoDB Compass connects to the correct url.
- LOAD: Load universities from API.
- DELETE: Remove the last university in the array.
- ADD: Copy the information of the first university and then append to the end of the array.
- LOAD FROM DATABASE: Load universities from database instead of API.
- Choose a university to be updated from the number in the table (data is loaded from database).
- Any number out of index range will not proceed further steps.
- Click the magnifier icon for searching.
- Update the values in different fields and submit.
- DELETE: Remove the last university in the database.
- ADD: Copy the information of the first university and append to database.