I spent several summers at the shore and had some really, really great times.
1st you need to decide what shore. We always went to Sea Isle, Avalon, Ocean City, or Strathmere.
The 2 keys are getting a place early (you missed the boat on this already) and have at least six people go in on a place.
2 people is not enough economic scale - it will cost you way too much. $2000 a piece won't get it done.
Find 4 more friends and you still might be able to pull it off. Also, definitely get waiter/bartender/cocktail waitressing jobs.
Those jobs pay the most and allow you to work the least and enjoy the beach.