GithubHelp home page GithubHelp logo

johnjohnn / node-db2-project Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bloominstituteoftechnology/node-db2-project

0.0 1.0 0.0 131 KB

Starter Code for Node DB 2 Project

JavaScript 100.00%

node-db2-project's Introduction

Node DB2 Project Starter Code

Introduction

In this challenge, you will write an API that can be used to manage Cars stored in a Relational Database.

Instructions

Task 1: Set Up The Project With Git

Follow these steps to set up and work on your project:

  • Create a forked copy of this project.
  • Clone your OWN version of the repository (Not Lambda's by mistake!).
  • Create a new branch: git checkout -b <firstName-lastName>.
  • Implement the project on your newly created <firstName-lastName> branch, committing changes regularly.
  • Push commits: git push -u origin <firstName-lastName>.

Task 2: Minimum Viable Product

  • Using knex migrations, design and write a schema for the cars table using the specifications below.
  • Configure knex to connect to a /data/car-dealer.db3 database using the sqlite3 npm module.
  • Write endpoints to support CREATE and READ operations on the cars resource.
  • Use a rest client like Insomnia or Postman to test your API.

Specifications

The client for this API is a car dealer who has provided the following specs:

  • The critical information for each car is the VIN, make, model, and mileage.
  • They also track transmission type and status of the title (clean, salvage, etc.), but this information is not always immediately known.

Task 3: Stretch Problems

  • Add seed data to the database using knex seeds
  • Add UPDATE and DELETE operations to your API.
  • Write a schema file for a sales table. This table should track information on the sale of each car. You may wish to research foreign keys in order to link each sale to the entry in cars which sold.

Submission format

Follow these steps for completing your project.

  • Submit a pull request to merge Branch into master (student's Repo). Please don't merge your own pull request

=================================================================================================================================================================================== 1st im gonna install some packages into the JSON folder 1: nodemon npm i nodemon YOU CAN ADD npm init -y if you dont have a package.json 2: npm i express 3: npm install express-router 4:npm install dotenv 5:npm i pg express

1: create your index.js File after installing all of the above and you can add a welcome Router file just to test the API .

2: create a knex.js file (This will be your database configure)

3: create a config file s

node-db2-project's People

Contributors

ericathompson avatar johnjohnn avatar luishrd avatar mixelpixel avatar

Watchers

 avatar

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.