<commit_before># ensemble
Dev Bootcamp Phase 3 Final Project.
TEAM: <NAME>, <NAME>, <NAME>, <NAME>

DB Schema
![db](/schema.png)


Layout-
navbar gets:
	- home
	- add/upload new ensemble
	- favorites dropdown
		- users
		- outfits
		- ratings
		- hashtags
	- logout

Routes-
post '/login' -reidrect to main page
get 'users/new' -new user sign up form

get '/users/:id' - show dashboard
	dashboard gets:
	- search box = start with hashtags
	- long scroll timeline (recently uploaded outfits from other users)
		- title
		- image
		- average rating (stars?)
		- articles list (clothing types descs)
		- caption
		- hanger to "favorite" this outfit
		- list of ratings?
		- empty stars to add your review, on click slides out a review box
	list can be sorted by date(created at), popularity(rating count * average stars), ratings(highest avg stars)

	- my recent outfits widget
	- trending widget

get '/users/user_id/ensembles/new'
	upload a new outfit

get 'users/user_id/ensembles'
	list of user's outfits

post 'users/user_id/ensembles'
	saves a new outfit for that user

post 'users/user_id/ensembles/ensemble_id/reviews/new'
	saves a new review

get 'users/user_id/favorites/users'
	list of a users favorite users

get 'users/user_id/favorites/hashtags'
	list of a users favorite hashtags

get 'users/user_id/favorites/outfits'
	list of a users favorite outfits


? get 'hashtags'
	list of trending hashtags

? get 'hashtags/id/ensembles'
	list of ensembles with<commit_msg>updated readme with routes<commit_after># ensemble
Dev Bootcamp Phase 3 Final Project.
TEAM: <NAME>, <NAME>, <NAME>, <NAME>

DB Schema
![db](/schema.png)


Layout-
navbar gets:
	- home
	- add/upload new ensemble
	- favorites dropdown
		- users
		- outfits
		- ratings
		- hashtags
	- logout

Routes-
post '/login' -reidrect to main page
get 'users/new' -new user sign up form

get '/users/:username' - show dashboard
	dashboard gets:
	- search box = start with hashtags
	- long scroll timeline (recently uploaded outfits from other users)
		- title
		- image
		- average rating (stars?)
		- articles list (clothing types descs)
		- caption
		- hanger to "favorite" this outfit
		- list of ratings?
		- empty stars to add your review, on click slides out a review box
	list can be sorted by date(created at), popularity(rating count * average stars), ratings(highest avg stars)

	- my recent outfits widget
	- trending widget

get '/ensembles' 
	renders json of all ensembles

get '/users/username/ensembles/new'
	upload a new outfit form

post 'users/username/ensembles/'
	saves a new outfit for that user

get 'users/username/ensembles'
	render json list of all user's outfits

post 'users/username/ensembles/ensemble_id/reviews'
	saves a new review - no get route because form is hard coded as hidden div

get 'users/username/favorites/users'
	render json list of a users favorite users

get 'users/username/favorites/hashtags'
	render json list of a users favorite hashtags

get 'users/username/favorites/outfits'
	render json list of a users favorite outfits

get 'hashtags'
	json list of trending hashtags

get 'hashtags/id/ensembles'
	json list of ensembles with that hashtag (json format matches /ensembles )
{'fraction_non_alphanumeric': 0.08239348370927319, 'fraction_numerical': 0.0006265664160401002, 'mean_word_length': 3.6749633967789164, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2029614', 'n_tokens_mistral': 1105, 'n_tokens_neox': 1016, 'n_words': 396}