FitFusion is a web application deisgned to help users find and view gym locations.The backend is built using MongoDB, ExpressJS and Node.JS, whereas the frontend is created using Bootstrap and CSS.The website features user authentication, token generation and cookie management
-
User Authentication: Secure sign up, login, and logout functionalities.
-
Cookie Management: Storing tokens and session data in cookies.
-
Gym Management: Create, read, update, and delete camping spots.
-
Responsive Design: Frontend developed using Bootstrap for a responsive user experience.
- Frontend: Bootstrap, CSS
- Backend: Node.js, ExpressJS, MongoDB
- Authentication: JWT, Cookies
- Node.js and npm installed on your local machine
- MongoDB instance (local or remote)
-
Clone the Repository:
git clone https://github.com/your-username/FitFusion.git cd FindMyCampSpot -
Install Backend Dependencies:
cd backend npm install -
Install Frontend Dependencies:
cd ../frontend npm install -
Setup Environment Variables:
Create a
.envfile in thebackenddirectory and add the following environment variables:MONGO_URI=your-mongodb-uri JWT_SECRET=your-jwt-secret COOKIE_SECRET=your-cookie-secret PORT=8000
-
Run the Backend:
cd backend npm startThe backend server should now be running on
http://localhost:8000.
- POST /api/auth/signup: User registration
- POST /api/auth/login: User login
- POST /api/auth/logout: User logout
- GET /api/spots: Get all gym locations
- GET /api/spots/:id: Get a single gym location by ID
- POST /api/spots: Create a new gym location
- PUT /api/spots/:id: Update a gym location by ID
- DELETE /api/spots/:id: Delete a gym location by ID
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Make your changes.
- Commit your changes (
git commit -m 'Add new feature'). - Push to the branch (
git push origin feature-branch). - Open a pull request.