Skip to content

aadarsh-nagrath/Place-WebApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Place-WebApp

Overview

Place-WebApp is a full-stack web application built using the MERN stack, which stands for MongoDB, Express.js, React.js, and Node.js. The primary purpose of this application is to provide a practical and comprehensive example of how these technologies can be integrated to develop a complete and functional project. This README.md file serves as the documentation for the Place-WebApp project.

Features

User Authentication and Authorization

  • User Authentication: Users can create accounts (signup) and securely log in.
  • User Authorization: Different parts of the application are accessible based on user roles.

File Upload Functionality

  • Users can upload files, particularly images.
  • Both the frontend and backend components are set up to handle file uploads.

Frontend and Backend Integration

  • The application demonstrates the integration between the frontend, built with React.js, and the backend, powered by Node.js and Express.js.
  • Data flow between the frontend and backend is showcased.

Database Interaction

  • MongoDB is used as the database for the application.
  • Perform CRUD (Create, Read, Update, Delete) operations on data.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Node.js and npm installed locally. You can download them from nodejs.org.
  • MongoDB installed and running locally or accessible via a remote server.
  • Git installed on your local machine.

Installation

To get started with Place-WebApp, follow these steps:

  1. Clone the repository to your local machine:

    git clone https://github.com/your-username/Place-WebApp.git
  2. Navigate to the project directory:

    cd Place-WebApp
  3. Install the dependencies for both the frontend and backend:

    # Navigate to the frontend directory and install dependencies
    cd frontend
    npm install
    
    # Navigate to the backend directory and install dependencies
    cd ../backend
    npm install

Configuration

Backend Configuration

  1. Create a .env file in the backend directory and configure the following environment variables:

    PORT=3001
    MONGODB_URI=your-mongodb-connection-uri
    JWT_SECRET=your-secret-key

    Replace your-mongodb-connection-uri with the MongoDB connection URI, and your-secret-key with a secure JWT secret key.

Usage

Running the Application

  1. Start the backend server:

    # Navigate to the backend directory
    cd backend
    
    # Start the server
    npm start
  2. Start the frontend development server:

    # Navigate to the frontend directory
    cd frontend
    
    # Start the development server
    npm start
  3. Access the application in your web browser at http://localhost:3000.

Contributing

Contributions are welcome! If you'd like to contribute to the Place-WebApp project, please follow these guidelines:

  1. Fork the repository on GitHub.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them with descriptive commit messages.
  4. Push your branch to your fork on GitHub.
  5. Create a pull request to the main branch of the original repository.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Special thanks to the MERN stack and the open-source community for their invaluable contributions to web development.

Thank you for using Place-WebApp! If you encounter any issues or have questions, please feel free to open an issue on the GitHub repository.

About

M.E.R.N full stack Place App, with users and places

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published