https://github.com/hannahannx/placestostay
A full-stack web app using Node.js, React, and SQLite, featuring an interactive map and RESTful API for seamless accommodation browsing.
https://github.com/hannahannx/placestostay
ajax html-css-javascript node-js sqlite-database
Last synced: about 1 month ago
JSON representation
A full-stack web app using Node.js, React, and SQLite, featuring an interactive map and RESTful API for seamless accommodation browsing.
- Host: GitHub
- URL: https://github.com/hannahannx/placestostay
- Owner: hannahannx
- Created: 2024-03-21T08:34:04.000Z (over 2 years ago)
- Default Branch: reactStarterProj
- Last Pushed: 2024-10-16T13:25:23.000Z (over 1 year ago)
- Last Synced: 2025-10-25T02:59:18.291Z (8 months ago)
- Topics: ajax, html-css-javascript, node-js, sqlite-database
- Language: JavaScript
- Homepage:
- Size: 348 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PlacesToStay
PlacesToStay is a full-stack web application that allows users to search for and book accommodations in various locations.
## Features
- Search for accommodations by location
- Filter accommodations by type and location
- Book accommodations for a specific number of people and date
- Interactive map display of accommodations
- User authentication and session management
## Technologies Used
- Frontend:
- React.js
- HTML5
- CSS3
- JavaScript
- AJAX
- Leaflet (for mapping)
- Backend:
- Node.js
- Express.js
- Database:
- SQLite
- better-sqlite3 module
- Other:
- OpenStreetMap
## Installation
1. Clone the repository:
```
git clone https://github.com/yourusername/PlacesToStay.git
```
text
2. Navigate to the project directory:
```
cd PlacesToStay
```
3. Install dependencies:
```
npm install
```
4. Set up the SQLite database using SQLite Studio
## Usage
1. Start the server:
```
npm start
```
2. Open your web browser and navigate to `http://localhost:3000`
## API Endpoints
- GET `/search/:location` - Search for accommodations by location
- GET `/search/:type/:location` - Search for accommodations by type and location
- POST `/book` - Book an accommodation
## Contributing
Contributions are welcome! Please feel free to submit a Pull Request.