An open API service indexing awesome lists of open source software.

https://github.com/mandinijayaratne/merncoffeefind

This project was my first practice in the MERN stack.CoffeeFind is a MERN web application where locals can share and explore favorite coffee spots. All users can view coffee places, while logged-in users can create, update, and delete entries in their accounts. Each user has a profile, with passwords securely hashed for privacy and security.
https://github.com/mandinijayaratne/merncoffeefind

bycrypt crud jwt mern-stack

Last synced: 5 months ago
JSON representation

This project was my first practice in the MERN stack.CoffeeFind is a MERN web application where locals can share and explore favorite coffee spots. All users can view coffee places, while logged-in users can create, update, and delete entries in their accounts. Each user has a profile, with passwords securely hashed for privacy and security.

Awesome Lists containing this project

README

          

# CoffeeFind β˜•

**CoffeeFind** is a MERN web application where locals can share and explore favorite coffee spots. All users can view coffee places, while logged-in users can create, update, and delete entries in their accounts. Each user has a profile, with passwords securely hashed for privacy and security. πŸ’‘This project was my first practice in the MERN stack.

## Features ✨

- **View Coffee Places**: All users can browse coffee places shared by others.
- **User Accounts**: Registered users can create, edit, and remove their coffee places.
- **Profile Management**: Each user has a profile, with passwords securely stored using hashing.
- **Authentication and Authorization**: Access to specific actions (create, update, delete) is restricted to logged-in users.

## Technologies Used πŸ› οΈ

- **Frontend**: React.js βš›οΈ
- **Backend**: Node.js 🌐, Express.js πŸš€
- **Database**: MongoDB πŸ—„οΈ (with Mongoose for ORM)
- **Authentication**: JWT (JSON Web Tokens) πŸ” for secure access control
- **Password Hashing**: bcrypt πŸ”‘ for secure storage

## Installation and Setup πŸ› οΈ

### Prerequisites

- Node.js and npm
- MongoDB (or a cloud-based MongoDB service)

### Steps

1. **Clone the repository**:
```bash
git clone https://github.com/MandiniJayaratne/MernCoffeeFind.git

2. **Backend Setup**:
- Navigate to the backend directory:
```bash
cd backend
```

- Install dependencies:
```bash
npm install
```

- **Configure the MongoDB connection**:

```plaintext
MONGODB_URI=your_mongodb_connection_string

```

- Start the backend server:
```bash
npm start
```

3. **Frontend Setup**:
- Open a new terminal and navigate to the frontend directory:
```bash
cd ../frontend
```

- Install dependencies:
```bash
npm install
```

- Start the React app:
```bash
npm start
```