Giter Site home page Giter Site logo

sparkdigital's Introduction

node sample app

Table of Contents

Installation

Please have a local postgres instance running

git clone https://github.com/ecasilla/sparkdigital

cp .env.template .env

npm install

npm start

Tools

  • Typescript
  • Joi (request/contract validation)
  • Gulp (build tool)

Folder Structure

├── README.md
├── accessories
│   ├── building-log.ts
│   ├── formatting-log.ts
│   ├── lint-log.ts
│   ├── linting-log.ts
│   ├── pre-commit-log.ts
│   ├── prepublish-log.ts
│   ├── real-build-log.ts
│   ├── test-log.ts
│   └── test-watch-log.ts
├── gulpfile.ts
├── package-lock.json
├── package.json
├── src
│   ├── api
│   │   ├── movies
│   │   │   ├── index.ts
│   │   │   ├── movies.ctrl.ts
│   │   │   ├── movies.model.ts
│   │   │   └── movies.validation.ts
│   │   └── users
│   │       ├── index.ts
│   │       ├── users.ctrl.ts
│   │       ├── users.model.ts
│   │       └── users.validation.ts
│   ├── auth
│   │   ├── auth.service.ts
│   │   ├── index.ts
│   │   └── local
│   │       ├── index.ts
│   │       └── passport.ts
│   ├── components
│   │   ├── errors
│   │   │   └── index.ts
│   │   └── middleware
│   │       └── requestId.ts
│   ├── config
│   │   ├── constants.ts
│   │   ├── express.ts
│   │   └── index.ts
│   ├── db
│   │   └── index.ts
│   ├── index.ts
│   ├── routes.ts
│   ├── utils
│   │   ├── index.ts
│   │   └── logger.ts
│   └── views
│       ├── 401.html
│       ├── 404.html
│       ├── 500.html
│       └── layout.ejs
├── tsconfig.json
├── tslint.json
└── typings
    ├── lme.d.ts
    └── typings.d.ts

Auth Token

Create & Login Endpoints return an Auth Token. You will need to send that token as an http header for subsequent requests.

HTTP Header Authorization Bearer ...token

UnAuth ROUTES

METHOD ROUTE
POST /api/v1/users/
POST /auth/login/

Auth ROUTES

METHOD ROUTE
GET /api/v1/movies/
GET /api/v1/movies/:id
POST /api/v1/movies/
PUT /api/v1/movies/:id
DELETE /api/v1/movies/:id
GET /api/v1/users/:id

Admin ROUTES

METHOD ROUTE
GET /api/v1/users/
DELETE /api/v1/users/:id

Team Members

sparkdigital's People

Contributors

ecasilla avatar

Watchers

James Cloos avatar  avatar  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.