Giter Site home page Giter Site logo

artistify-2's Introduction

Artistify Workshop

This group workshop will walk you through the steps to create a fullstack application.

Work as a team, communicate, splits tasks, avoid git conflicts !

alt text


Day II - More C.R.U.D and Collection references (end @ 15h00)

Today, we will continue the dashboard CRUD with an important addition.
We will introduce a new model : Album.
It's an interesting one since it's linked to 2 other models : Artist and Label.
One album is indeed performed by an artist and produced by a label (debatable :)

Advice : read this doc entirely before starting !

Don't worry if you can't finish all the steps : you will get a soluce proposal.

Do your best : Happy hacking !


Todos

  • create model Album:
    • link Album to Artist with a ref (ObjectId)
    • link Album to Label with a ref (ObjectId)
  • CRUD Album
    • the Create is provided but select/option displaying artists and label are missing
    • the Read is provided
    • code the Update form + routes
    • code the Delete route
  • Artist :
    • Link Artist model to Style with a ref (array of ObjectId)
    • Update the provided code to add style to CRUD Artist

The Album model should be located in /models/Album.js

The Album model must have the following properties :

The artist router should be located in /routes/album.js .
All those routes are prefixed with /dashboard/album/


Here is a routes description:
Route HTTP View Description
/ GET dashboard/album.hbs Show all albums in a dashboard table
/create GET dashboard/albumCreate.hbs Display album create form
/update/:id GET dashboard/albumUpdate.hbs Display album update form
/delete/:id GET none Delete one album and redirect to /dashboard/album
/ POST none Create one album and redirect to /dashboard/album
/:id POST none Update one album and redirect to /dashboard/album


Done already ? Congratz !

alt text

artistify-2's People

Contributors

kostra0ne avatar gastise 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.