is this based on a true story?
Yes, the characters are based on real people in Hemingway's circle, and the action is based on real events.
The Sun Also Rises
The novel is a "roman à clef": the characters are based on real people in Hemingway's circle, and the action is based on real events. 
how long did it take hemingway to write the sun also rises He started writing on 21July and finished the draft on 21 September 1925. what type of written work is this? It is an early and enduring modernist novel. who is the author of this work? Ernest Hemingway when was this work first published? October 1926 what is the storyline of this work? It that portrays American and British expatriates who travel from Paris to the Festival of San Fermín in Pamplona to watch the running of the bulls and the bullfights.
wiki:13266847
The Sun Also Rises [SEP] Introduction
It remains in print. The basis for the novel was Hemingway's trip to Spain in 1925. The setting was unique and memorable, depicting sordid café life in Paris and the excitement of the Pamplona festival, with a middle section devoted to descriptions of a fishing trip in the Pyrenees. Hemingway's spare writing style, combined with his restrained use of description to convey characterizations and action, demonstrates his "Iceberg Theory" of writing. The novel is a "roman à clef": the characters are based on real people in Hemingway's circle, and the action is based on real events. Hemingway presents his notion that the "Lost Generation"—considered to have been decadent, dissolute, and irretrievably damaged by World War I—was in fact resilient and strong.