character_chords_back_end's People
Forkers
character-chords-appcharacter_chords_back_end's Issues
BE Extension 1: Add more quizzes to seed data
Create alignment tests for more themes.
Possible quizzes:
- Star Wars
- Lord of the Rings
- Harry Potter
- Programmers
- Video Game Characters
- Etc.
BE API Endpoint 3
POST chordsapi/v1/playlist_create?character_id={CHARACTER_ID}&playlist_id={PLAYLIST_ID}
NOTE:The front end will also be sending the authorization token and whatever else needed to modify a user's playlist
When I go to this endpoint,
A playlist is created in spotify,
and I receive a link back to open the playlist in spotify
TO-DO: Update this with the JSON response.
Extension 4: Testing
Improve the upon the robustness of feature tests. Include sad paths and edge cases where applicable
BE Integrate CircleCi
BE API Endpoint 1
GET /chordsapi/v1/themes/#{Theme.all.first.id}/characters/find_character?good_evil={Float_to_be_provided}&lawful_chaotic={Float_to_be_provided}
when I visit this endpoint with valid quiz answers,
I receive back a JSON object,
somewhere in the json is the character in the form of a string,
dnd alignment as a string
And a link to an image of the character,
and the name of the quiz the character is from,
RESPONSE:
{
"links": {
"image": "http://example.com/vaderpic"
},
"data": {
"type": "character",
"id": "1",
"attributes": {
"name": "Darth Vader",
"quiz": "Star Wars",
"alignment": "Neutral Evil"
}
}
BE Extension 2: Store playlist information
Allow the user to store their Spotify playlist
BE Sessions to POROs
Make all of the sessions store poros
BE API Endpoint 2
POST /chordsapi/v1/themes/#{theme_id}/characters/#{character.id}/playlists?genre=hip-hop
this end point should return a playlist with a list of 10 songs in the following format (and add that playlist as a playlist object to the DB- in incremental order)
{
"links": {
" image": "http://example.com/vaderpic"
},
"data": [{
"type": "character",
"id": "1",
"attributes": {
"name": "Darth Vader",
"quiz": "Star Wars",
"alignment": "Neutral Evil"
},
{
"type": "playlist",
"attributes":{
"id": "1"
"titles": "["Song1", "Song2", "Song3", "Song4"]"
}
}]
}
GENRE SAD PATH: Too many characters
When I try to submit over 40ish characters in the genre field, I get an error message
BE OpenAI Testing
Improve testing for service and facade for OpenAI playlist generation
BE API Endpoint 0.5 Display all themes(quizes) with name, photo, id, and link to take that quiz
GET /chordsapi/v1/themes
Explanation on the Home Page
Need explanation on the home page on how to work this program. (i.e. take the test and then input a music choice and receive a playlist.)
BE README
Complete README for Backend Repo
BE API Endpoint 0
GET chordsapi/v1/themes/:theme_id/questions
{
{
"links": {
" image": "http://example.com/quizimage"
},
"data": [
{
"type": "question",
"id": "1",
"attributes": {
"name": "What would you do if an underling defied you?",
"quiz": "Star Wars",
"answers": [
{"A": {"text": "Negotiate a compromise", "value": 1}},
{"B": {"text": "Ask them again to do as you say", "value": 2}},
{"C": {"text": "Use the force to throw them across the room", "value": 3}},
{"D": {"text": "foo", "value": 4}},
{"E": {"text": "bar", "value": 5}}
]
},
{
"type": "question",
"id": "2",
"attributes": {
"name": "Are you a nice guy?",
"quiz": "Star Wars",
"answers": [
{"A": {"text": "Yes", "value": 1}},
{"B": {"text": "Kinda", "value": 2}},
{"C": {"text": "No", "value": 3}},
{"D": {"text": "foo", "value": 4}},
{"E": {"text": "bar", "value": 5}}
]
}
]
}
BE Api Endpoint : all characters for a theme
GET /chordsapi/v1/themes/:theme_id/characters
BE Debug Hady's issue
Troubleshoot to find the culprit for why Hady's local is not able to run app
BE Facades to POROs
Make all of the facades return poros
BE API Endpoint 2.5
GET "/chordsapi/v1/themes/:theme_id/characters/:character_id/playlists/:playlist_id"
This will output in JSON the serialized playlist object that had been created by the POST action
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.