Giter Site home page Giter Site logo

backend-gitty's Introduction

Template for Backend Express

The Golden Rule: 🦸 πŸ¦Έβ€β™‚οΈ Stop starting and start finishing. 🏁

If you work on more than one feature at a time, you are guaranteed to multiply your bugs and your anxiety.

Scripts

command description
npm start starts the app - should only be used in production as changes will not get reloaded
npm run start:watch runs the app using nodemon which watches for changes and reloads the app
npm test runs the tests once
npm run test:watch continually watches and runs the tests when files are updated
npm run setup-db sets up the database locally
npm run setup-heroku sets up the database on heroku

User Routes

Route HTTP Method HTTP Body Description
/api/v1/users/ POST {email: '[email protected]', password: '123456', firstName: 'Test', lastName: 'User'} Creates new user
api/v1/users/sessions/ POST {email: '[email protected]', password: '123456'} Signs in existing user
/api/v1/users/me/ GET None Returns current user
/api/v1/users/ GET None Authorized endpoint - returns all users for admin.
api/v1/users/sessions/ DELETE None Deletes a user session

backend-gitty's People

Contributors

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