Skip to content

This is a blog project built using Django, GraphQL, and Vue.js. The blog allows users to create accounts, create posts, and view them.

Notifications You must be signed in to change notification settings

tomaquet18/dgv_blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Project Name

📚 DGV Blog (Django, GraphQL, Vue.js)

Description

This is a blog project built using Django, GraphQL, and Vue.js. The blog allows users to create accounts, create posts, and view them.

Features

✅ User Authentication: Users can create accounts and log in to the blog.
✅ Post Creation: Authenticated users can create new blog posts.
✅ Post Listing: Users can view a list of all the published blog posts.
✅ Post Detail: Users can click on a specific blog post to view its details.
✅ GraphQL API: The project utilizes GraphQL for querying and manipulating data.

Technologies Used

🔧 Django: Python-based web framework used for the backend development.
🔧 GraphQL: Query language and runtime for APIs.
🔧 Vue.js: JavaScript framework used for building the frontend user interface.

Installation

To run the project locally, follow these steps:

  1. Clone the repository:
git clone https://github.com/tomaquet18/dgv_blog
  1. Install the required dependencies:
cd Django_blog/backend
pip install -r requirements.txt
  1. Set up the database:
python manage.py migrate
  1. Start the development server:
python manage.py runserver
  1. Install the required dependencies for the frontend (Vue.js):
cd ../frontend
npm install
  1. Open a new terminal window, navigate to the frontend directory, and start the development server for the frontend:
npm run serve
  1. Open your browser and visit http://localhost:8080 to see the blog.

Note: By default, Vue.js uses port 8080 for development. If this port is already in use on your system, you can specify a different port by modifying the configuration in the frontend/vue.config.js file. 8. Access the admin panel by visiting http://localhost:8000/admin to create user accounts and manage posts.

Now you have the backend server and frontend development server up and running, allowing you to use the blog locally.

Usage

  • Create an account or log in if you already have one. Access the admin panel by visiting http://localhost:8000/admin and entering your credentials.
  • Once logged in, you can create new blog posts by clicking on the "Add Post" button in the admin panel.
  • To view the blog posts, visit http://localhost:8080 to see the homepage of the blog.
  • Clicking on a specific blog post will take you to its detailed view.
  • Feel free to explore and interact with the blog features. Remember to use the admin panel for creating and managing posts.

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature/bugfix: git checkout -b feature/your-feature.
  3. Make your changes and commit them: git commit -m 'Add some feature'.
  4. Push the changes to your forked repository: git push origin feature/your-feature.
  5. Submit a pull request detailing your changes.

About

This is a blog project built using Django, GraphQL, and Vue.js. The blog allows users to create accounts, create posts, and view them.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published