Coders Packet

Getting a list of top five employers for the specific job titles using JavaScript.

By Shruti Jukaria

In this project, we are going to build a simple and basic job app using HTML, CSS, JavaScript and Node.js that gives you information about the top employers of your job.

This App is created using an Open Source API- Adzuna.

1.Installing the package manager (NPM) and various dependencies-

At first, we need to install Node.js on our system. It is a JavaScript framework that handles our project from the server side. Along with node.js we need to install various dependencies like express, ejs, body-parser. We need to install and initialise npm first which is the package manager. Then we use npm to install various dependencies. We can initialise npm using the command - npm init

2. Getting an API key from Adzuna-

First we need to create an account on API key and get the API key. You need to get your own API key. That key is used whenever we make a request to the API. 

3. Front End- 

EJS templates are used to give content to our web page so that the user can enter the information. CSS(Cascading Style Sheets) is used to provide design and style to the web page.

4. Back-end(Node.js).

We need to create a .js file and require various dependencies in it. Node.js handles our application from the server side. Get requests are used to render the information and post requests are used to send the data to the server which retrieves the information and send it back to us. We created a .env file to store our API Keys. Those keys are used in our app.js file using process.env method. 

We need to run our app in CLI using the command node app.js. Then you have to open your browser and search localhost:3000.


Download Complete Code


No comments yet