marlitas / artspirationfe Goto Github PK
View Code? Open in Web Editor NEWThe frontend portion of artspiration
The frontend portion of artspiration
Add logout button to navbar to persist across all pages.
As a user, when I visit ('/users/arts/:id') or ('/dashboard/arts/:id'), I see
JSON Formats:
Rated_art
get '/api/v1/users/:id/rated_art/:art_id
Rated_Art
:data =>{:id=> {art_id},
:type=> '"rated_art',
:attributes=> {
title: 'title',
artist: 'artist',
artist_url: 'artist_url'
image_url: 'image_url'
liked: 'true' (or 'false') or nil?
user_id: 'user_id' }
As a user, when I visit ('/users/arts/:id') or ('/dashboard/arts/:id'):
JSON Formats:
Requests:
-Rated_art
update '/api/v1/users/:id/rated_art/:art_id
Response:
As a user, when I visit the home page,
Clicking the link will redirect me to that artist's artsy page. artsy.net/artist/
As an authenticated user,
As a logged in user, when I visit the '/dashboard' I see:
JSON Responses:
User:
:data => {:id=> {user_id},
:type=> 'user',
:attrs=>{:email, :name}}
Recommended Art:
[0..n] times:
{:data =>{:id=> {art_id},
:type=> '"recommended_art',
:attributes=> {
title: 'title',
artist: 'artist',
artist_url: 'artist_url'
image_url: 'image_url'
liked: nil or 'unrated'?
user_id: 'user_id' }}
Liked Rated Art:
[0..n_user_likes] times:
{:data =>[ {:id=> {art_id},
:type=> 'liked_rated_art',
:attributes=> {
title: 'title',
artist: 'artist',
artist_url: 'artist_url'
image_url: 'image_url'
liked: 'true' (or 'false') or nil?
user_id: 'user_id' }}
As a user, when I visit the home page
As a user, when I visit the home page,
As an authenticated user,
when I visit the user's image index page ('/user/images' path) or ('/dashboard/images')
I should see:
Links to all of the images in my 'Favorite Images' folder
When I click this link , it either 1. redirects me to that images show page or 2. enlarges the image on the same page.
A link that takes me back to my dashboard
When I click this link, I am redirected to the ('/user') or ('/dashboard')
A link to the artist page from Artsy
When I click this link, I am redirected to...('artsy.net/artist/')
A link to log out
When I click this link, I am logged out of my account and redirected back to the home page '/'
[ ] Task 1
As a user, when I login, I am redirected to the '/dashboard' I see:
As a user, when logged in I can logout at any time which:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.