GithubHelp home page GithubHelp logo

lawgamble / starter-tracing-back-end Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thinkful-ed/starter-tracing-back-end

0.0 0.0 0.0 39 KB

Starter code for the "Connecting it all: Tracing Errors" checkpoint in the Thinkful curriculum.

JavaScript 100.00%

starter-tracing-back-end's Introduction

Tracing Backend Application

This starter code for the "Connecting it all: Tracing Errors" checkpoint in the Thinkful curriculum.

Existing files

As you work through the "Connecting it all: Tracing Errors" checkpoint, you will be writing code traces requests through your server.

The table below describes the files and folders in the starter code:

| Folder/file path | Description | | ---------------- | -------------------------------------------------------------------------------- | | | knexfile.js | Knex configuration file. | | src/app.js | Directs requests to the appropriate routers. || | src/articles/articles.controller.js | The controller for the articles resource | | src/articles/articles.router.js | The router for the articles resource | | src/articles/articles.service.js | The service for the articles resource | | src/db/connection.js | Database connection module. | | src/db/migrations | A folder that contains the knex migrations | | src/db/seeds | A folder that contains the knex see data | | src/errors | folder where you will find several functions for handle various errors. | | src/server.js | Starts the server on localhost:5000 by default. | | .env.sample | A sample environment configuration file

This starter code closely follows the best practices and patterns established in the Robust Server Structure module.

Installation

  1. Fork and clone this repository.
  2. Copy .env.sample to .env.
  3. Run npm install to install project dependencies.
  4. Run npm run start:dev to start your server in development mode.

Database setup

  1. Set up a new ElephantSQL database instance by following the instructions in the "PostgreSQL: Creating & Deleting Databases" checkpoint.
  2. In your .env file, set the DATABASE_URL to the database connection url for your new database
  3. Run npx knex migrate:latest to migrate the database schema
  4. Run npx knex seed:run to seed some article data into the database

If you have trouble getting the server to run, reach out for assistance.

starter-tracing-back-end's People

Contributors

dalelotts 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.