(Discontinued for now)
This website provides UK users with insights into how their salaries compare to others, using gov data to provide information on salaries by region, age, ethnic group, sex, etc. Technologies used are listed below. This website aims to offer an interactive and informative experience in the far future.
- Node.js
- HTML
- CSS
- JavaScript
- Nodemon
- Express.js
- PostgreSQL
- pgAdmin
Ensure you have the following installed:
- Node.js
- PostgreSQL
- pgAdmin
- Create a New Database:
- Open pgAdmin.
- Create a new database. Name it as per your preference.
-
Clone the Repository:
- Clone the project repository to your local machine.
-
Install Dependencies:
- Navigate to the root directory of the project.
- Run
npm install
to install all the required npm packages.
-
Environment Setup:
-
Create a
.env
file in the root directory. -
Add the following environment variables:
PGUSER=yourUser PGHOST=localhost PGDATABASE=YourDBName PGPASSWORD=yourDBPassword PGPORT=yourPort (default: 5432)
-
-
Initialize the Database:
- Run
node backend/processing-data/populateDatabase.js
. - This script will create the required tables and initialize your database.
- Run
-
Start the Server:
- Run
npm run dev
to start the server using Nodemon for easier development.
- Run
-
Access the Website:
- Open your web browser and go to
http://localhost:3000/
. - You should now be able to view and interact with the website.
- Open your web browser and go to
Feel free to fork this project and submit pull requests for any improvements or fixes.