This project is a personal portfolio website showcasing stories, insights, and visual galleries. The goal is to create an engaging platform for presenting architectural insights, personal stories, and other content in a visually appealing manner.
- Home Page: An introduction to the site, displaying the latest stories and highlights.
- Story Page: Each story is detailed with an image, title, content, location, and date of publication.
- Gallery Page: A visual gallery showcasing various images related to the stories.
- About Page: Information about the site and its creator.
- Frontend:
- React
- CSS for styling
- Backend:
- Node.js
- Express
- MongoDB for database
- Other Tools:
- Axios for making HTTP requests
- File handling libraries
- Node.js and npm installed
- MongoDB installed and running
-
Clone the repository:
git clone <repository-url> cd portfolio-project
-
Install dependencies:
npm install cd client npm install cd ..
-
Start the backend server:
npm start
-
Start the frontend development server:
cd client npm start
- Navigate to
http://localhost:3000
to view the website. - The homepage features the latest stories.
- Click on a story to view its detailed page.
- Use the gallery and about links to navigate to those sections.
portfolio-project/
├── client/ # Frontend React app
│ ├── public/
│ ├── src/
│ │ ├── components/ # React components
│ │ ├── App.js
│ │ └── index.js
│ ├── package.json
│ └── ...
├── models/ # Mongoose models
│ ├── datas.model.js
│ └── ...
├── routes/ # Express routes
│ ├── postingDB.js
│ ├── storyRoutes.js
│ └── ...
├── uploads/ # Directory for uploaded images
├── server.js # Express server setup
├── package.json
└── ...
- GET /stories: Fetch all stories
- POST /localstory: Add a new story
- DELETE /stories/:id: Delete a story by ID
Feel free to open issues or submit pull requests with improvements. Contributions are welcome!
This project is licensed under the MIT License.
Feel free to customize this README file as per your project's specific details and requirements.