Code Monkey home page Code Monkey logo

scrum-dawgs-server's Introduction

Scrum Dawgs Server

REST API Documentation

Users

Method URL Controller Description
GET /users indexUsers Retrieve all users data
GET /user/:userID singleUser Retrieve single user's data
PUT /user/:userID updateUser Update single user's data
DELETE /user/:userID deleteUser Delete single user's data
GET /users/:userID/projects userProjects Retrieve all user's projects
POST /users/:userID/projects newProject Adds new project by user
GET /user/:userID/projects/:projectID singleProject Retrieve user's individual project
PUT /user/:userID/projects/:projectID updateProject Update user's individual project
DELETE /user/:userID/projects/:projectID deleteProject Delete user's individual project
GET /users/:userID/tasks userTasks Retrieve all user's tasks
POST /users/:userID/tasks newTask Adds new task by user
GET /user/:userID/tasks/:taskID singleTask Retrieve user's individual task
PUT /user/:userID/tasks/:taskID updateTask Update user's individual task
DELETE /user/:userID/tasks/:taskID deleteTask Delete user's individual task

Projects

Method URL Controller Description
GET /projects allProjects Retrieve all projects data
GET /projects/:projectID/users projectUsers Retrieve single project's users
GET /projects/:projectID/tasks projectTasks Retrieve single project's tasks

Tasks

Method URL Controller Description
GET /tasks allTasks Retrieve all tasks data

Auth

Method URL Controller Description
POST /auth/register register Register new user account
POST /auth/login login Login user account
GET /auth/current current Ensure authentication of user

GitHub

Method URL Controller Description
GET /github github Login endpoint for GitHub auth
GET /github/callback callback Github Auth Callback w/ redirect
GET /github/profile profile Ensure authentication of user
GET /github/logout logout Logout endpoint for GitHub user
GET /github/success-callback successLogout Success Callback for Github logout

Run Locally

Create new schema in MySQL Workbench named scrum_dawgs. Ensure configuration for Local Database Instance is configured correctly in knexfile.js for host, user, password. Ensure that your MySQL server is running, then run the following scripts:

  npm run migrate
  npm run start

NPM Scripts

  "scripts": {
    "migrate": "knex migrate:latest",
    "migrate:down": "knex migrate:down",
    "migrate:rollback": "knex migrate:rollback",
    "seed": "knex seed:run",
    "dev": "nodemon index",
    "start": "node index"
  },

dotenv Configurations

PORT=8080

Entity Relationship Diagram

scrum-dawgs-server's People

Contributors

nicholas-nguyen8742 avatar menu89 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.