Code Monkey home page Code Monkey logo

dbc-crud's Introduction

CRUD skeleton

###Javascript/Jquery/AJAX

#####See application.js file

When write blog link is clicked hide write blog button and append blog form in its place You would click a "enter a new post button" the button will be replaced with a form partial the form partial when filled out will append a new partial containing the new element you created the "enter a new post button will return" the form partial will disappear

###Basic routes for users/sessions and a single model

A basic set up with views and controllers was created for a single model - templates. You can control find and change template to be whatever class you need after creating it. You will need to do small edits for your edit route and forms to include the information you are supplying.

This template will display title and body and belongs to a user.

###Sessions/Login

Login and creating users is included with this skeleton. Email should be unique identifier for this.

###Helper Methods

Helper methods have been written to make: finding the current user based on session id. seeing if a user is logged in with a valid session id. seeing if a user can edit a post if their session id matches the template user id.

###Questions for template

Ask Eric Dell'Aringa on copperheads slack or email: [email protected]

dbc-crud's People

Contributors

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