The job backend module
This module will implement all of the backend logic related to jobs. We are going to define the necessary models and controllers. Only the most important parts of the module will be explained.
The job model
The job model will define a single entity from the Jobs
collection and is going to handle the necessary validation when creating a new job. As for the company model, we are going to use a custom variable file for job industries and types. The two files will be located at jobboard/config/variables/industries.js
and jobboard/config/variables/jobtypes.js
, respectively. Both export a list of objects.
In order to implement the job
model, we are going to follow these steps:
- Create the model file, called
jobboard/app/models/job.js ...
Get Web Application Development with MEAN now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.