Git Product home page Git Product logo

job-application-tracker-backend's Introduction

Job Application Tracker Backend

This repository contains the backend code for a job application tracker application. The backend provides API endpoints to manage job applications, allowing users to create, read, update, and delete application records.

Features

  • Create applications: Add new job applications with details like company, position, date applied, status, and notes.
  • Read applications: Retrieve all applications or filter by status and order by company.
  • Update applications: Modify existing application details, such as updating the status or adding notes.
  • Delete applications: Remove unwanted application records.

Technologies Used

  • Node.js: JavaScript runtime environment
  • Express.js: Web application framework for Node.js
  • PostgreSQL: Relational database management system
  • pg-promise: PostgreSQL client library for Node.js
  • dotenv: Loads environment variables from a .env file

Getting Started

  1. Clone the repository:

    git clone https://github.com/jmoncayo-pursuit/job-application-tracker-backend.git
  2. Install dependencies:

    cd job-application-tracker-backend
    npm install
  3. Set up the database:

    • Create a PostgreSQL database (e.g., job_tracker).
    • Create a .env file in the root directory and add the following environment variables, replacing the placeholders with your actual database credentials:
    PG_HOST=localhost
    PG_PORT=5432
    PG_USER=your_db_user
    PG_DATABASE=job_tracker
    PG_PASSWORD=your_db_password
    PORT=3000 
    
  4. Run database migrations:

    • Execute the SQL script in db/schema.sql to create the applications table.
    • Optionally, populate the database with sample data from db/seed.sql.
  5. Start the server:

    npm start

    The server will start running at http://localhost:3345 (or the port specified in your .env file).

API Endpoints

The following API endpoints are available:

  • GET /applications: Get all applications.
  • GET /applications/:id: Get an application by ID.
  • POST /applications: Create a new application.
  • PUT /applications/:id: Update an application by ID.
  • DELETE /applications/:id: Delete an application by ID.

job-application-tracker-backend's People

Contributors

jmoncayo-pursuit avatar

Watchers

 avatar

Forkers

ksecondpursuit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.