https://github.com/simran1002/fullstackinator
It is a full-stack web application where users can sign up, log in, and view a list of posts. This project uses Node.js, Express.js, MongoDB, React.js, and JWT for authentication.
https://github.com/simran1002/fullstackinator
Last synced: 11 months ago
JSON representation
It is a full-stack web application where users can sign up, log in, and view a list of posts. This project uses Node.js, Express.js, MongoDB, React.js, and JWT for authentication.
- Host: GitHub
- URL: https://github.com/simran1002/fullstackinator
- Owner: simran1002
- Created: 2024-06-02T22:21:48.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-04T18:29:26.000Z (about 2 years ago)
- Last Synced: 2025-03-14T21:25:53.642Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 362 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MelodyVerse
MelodyVerse is a full-stack web application where users can sign up, log in, and view a list of posts. This project uses Node.js, Express.js, MongoDB, React.js, and JWT for authentication.
### Backend Setup
1. **Navigate to the backend directory:**
```bash
cd backend
```
2. **Install backend dependencies:**
```bash
npm install
```
3. **Set up environment variables:**
Create a `.env` file in the `melodyverse-backend` directory and add the following:
```env
MONGO_URI=
JWT_SECRET=
```
4. **Run the backend server:**
```bash
npm run dev
```
The backend server will start on `http://localhost:5000`.
### Frontend Setup
1. **Navigate to the frontend directory:**
```bash
cd frontend
```
2. **Install frontend dependencies:**
```bash
npm install
```
3. **Run the frontend application:**
```bash
npm start
```
The frontend application will start on `http://localhost:3000`.
## API Endpoints
### Authentication
- **POST /api/auth/signup**
- **POST /api/auth/login**
- **GET /api/posts**
## Technologies Used
- **Backend:** Node.js, Express.js, MongoDB, JWT
- **Frontend:** React.js, Tailwind CSS, Axios
## Contributing
1. Fork the repository.
2. Create a new branch: `git checkout -b my-feature-branch`.
3. Make your changes and commit them: `git commit -m 'Add new feature'`.
4. Push to the branch: `git push origin my-feature-branch`.
5. Submit a pull request.