Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seanoliver/sharebnb-backend
https://github.com/seanoliver/sharebnb-backend
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/seanoliver/sharebnb-backend
- Owner: seanoliver
- Created: 2023-05-02T18:12:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-27T17:02:33.000Z (over 1 year ago)
- Last Synced: 2024-12-06T16:57:57.144Z (about 1 month ago)
- Language: JavaScript
- Size: 99.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ShareBNB Backend
## Checklist
- [ ] Models
- [X] Listing
- [X] create
- [X] findAll
- [X] _filterWhereBuilder
- [X] get
- [X] update
- [X] remove
- [X] User
- [X] authenticate
- [X] register
- [X] getAll
- [X] get
- [X] update
- [X] remove
- [ ] Conversation
- [ ] create
- [ ] sendMessage
- [ ] readMessage
- [ ] delete- [ ] Middleware
- [ ] auth
- [X] authenticateJWT
- [X] isLoggedIn
- [ ] isListingOwner (not sure if this is middleware)
- [X] isCorrectUser
- [ ] isInConversation (not sure if this is middleware)- [ ] Routes (no auth)
- [X] /listings
- [X] POST /
- [X] GET /
- [X] GET /? (minPrice, maxPrice, genre)
- [X] GET /:id
- [X] PATCH /:id
- [X] DELETE /:id
- [X] /upload
- [X] POST /image
- [X] /auth
- [X] POST /register
- [X] POST /login
- [X] /users
- [X] GET /
- [X] GET /:username
- [X] PATCH /:username
- [X] DELETE /:username
- [ ] /conversations
- [ ] GET /
- [ ] GET /? (minPrice, maxPrice, genre)
- [ ] GET /:id
- [ ] PATCH /:id
- [ ] DELETE /:id![Route Diagram](./routeDiagram.svg)
## Breaking Changes
- Upload images route is now POST /upload/image
- Start backend server with `nodemon server.js` instead of `nodemon app.js`
- Image upload is technically optional## Outstanding
- [ ] Upload image still adds full AWS URL to database
- [ ] Need to implement conversation routes / functionality
- [ ] Add checks for correct listing owner (not sure if this is middleware)
- [ ] Add checks for in conversation (not sure if this is middleware)## Deployment
- [X] Complete ElephantSQL setup
- [ ] Resolve issue with Render
- [ ] Link ElephantSQL to Render and push seed data
- [ ] Link AWS S3 to Render