Skip to content
maryus1991Public

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Post Hub WebSite

This is a Simple Website for posts and news That allow the users to read and create posts

DEMO




Swagger Page



Database Schema

the provided schema is the main database design of the project based on the models we have used in django project.


Online Database Schema FlowChart on This Link


Installation

1 .Install Docker

For Install Docker in linux or windows use this link


2. Get The project

for get the project just clone it from Github or you can use the below code

Just copy and past in terminal or CMD

git clone https://github.com/maryus1991/ADV_Blog.git

3. Start The project

For setup and Start the project just run the Below code in terminal or CMD

docker compose up --build -d 

its may take a time to build and run the project

NOTE : Run This code in the directory the cloned the project



4.Setup The Project


First you need to migrate and by run migrate command project database will setup

docker compose exec blog sh -c 'python manage.py makemigrations'
docker compose exec blog sh -c 'python manage.py migrate'

Then create the admin user for setup default setting for site

docker compose exec blog sh -c 'python manage.py createsuperuser'

NOTE: After running the command you should enter email and password


5.Setup the Default Information

First you Should to run the following command for create test posts

docker compose exec blog sh -c 'python manage.py fake_blog enter@your.email'

NOTE: Enter your email , replace enter@your.email with your email


Secund you should enter the admin page in the following link

Enter the link to your browser
localhost:8000/admin/SiteSetting/sitesetting/add/

As you see in the above image you should enter this kind of information



And finally you should see the page in the following link



localhost:8000/



Contact

I write all part of the project
For contact me just mail me at : maryus19915123@gmail.com



License

MIT

Bugs

Feel free to let me know if something needs to be fixed. or even any features seems to be needed in this repo.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages