techcsispit / MERN-Auth-Workouts-App

This Workouts App is a full-stack CRUD application built using the MERN stack (MongoDB, Express, React, Node.js) with authentication implemented using Bcrypt and JWT. The app allows users to create, update, view, and delete workouts once they are authenticated. Contributions are welcome to improve styling, fix bugs, and add features.
0 stars 2 forks source link
bcrypt express jwt mongodb nodejs react

Workouts App

About

This Workouts App is a full-stack CRUD application built using the MERN stack (MongoDB, Express, React, Node.js) with authentication implemented using Bcrypt and JWT. The app allows users to create, update, view, and delete workouts once they are authenticated. Contributions are welcome to improve styling, fix bugs, and add features.

Requirements

Make sure you have the following installed:

Node.js Packages

Run the following command to install the necessary packages:

npm install bcrypt jsonwebtoken mongoose express react-router-dom

Bug Fixes Needed:

Features To Be Added:

Authentication

Workouts

Usage

Backend

  1. Clone the repository and navigate to the backend folder.

    git clone https://github.com/techcsispit/MERN-Auth-Workouts-App
    
    cd MERN-Auth-Workouts-App
    
    cd backend
  2. Install the dependencies:
    npm install
  3. Set up a .env file with the following variables:
    MONGO_URI=your-mongodb-uri
    JWT_SECRET=your-jwt-secret
    PORT=5000
  4. Start the backend server:
    npm start

Frontend

  1. Navigate to the frontend folder.
  2. Install the dependencies:
    npm install
  3. Start the React app:
    npm start

API Endpoints

User Routes

Workout Routes (Protected)

Contributing

We welcome contributions to the project. Please feel free to submit bug fixes, improvements, and features via pull requests.

  1. Creating an Issue: Before making any changes, create an issue explaining what you'd like to add or change and why
  2. Fork the repository.
  3. Create a new branch for your feature or bug fix.
  4. Commit your changes and push the branch.
  5. Submit a pull request.

Raising an Issue

If you encounter any bugs or would like to request a feature, please create an issue on the repository with detailed steps to reproduce or a description of the feature request.