beatriz-mattos / car-inventory-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Car Inventory App 🚗

This is a simple back-end application for managing a car inventory. It provides endpoints for adding, deleting, and soft-deleting cars. Soft-deleted cars are permanently deleted after a certain period of time.

Tecnologies Used

  • Node.js
  • Express.js
  • Knex.js
  • Pg (module for interacting with PostgreSQL databases)
  • Dotenv
  • Node cron
  • Tests: Mocha (testing framework), Chai (for the assertions), Sinon and Axios (for the mocks)

Installation

  1. Clone the repository: git clone https://github.com/beatriz-mattos/car-inventory-app.git

  2. Install the dependencies: cd car-inventory-app/backend && npm install

  3. Set up the database: Use the variables in the .env.example file to set up your database configuration by creating a .env file in the current directory. touch .env

  4. Run the migrations queries on database: npx knex migrate:latest

  5. Start the server. It will start running on http://localhost:3000. npm start

About


Languages

Language:JavaScript 100.0%