In user blog api you can create a user, create posts, edit them and delete them, as well as liking yours or another author's posts. You can also see the analytics of how many likes were given in a certain period of time. And also a bot has been added that can create users, posts and give likes.
- Docker: Install Docker
- If you want to use PostgreSQL: Install PostgreSQL
- Clone this repository to your local machine: https://github.com/erikagayan/Social-Network.git
- Navigate to the project directory
- Create
.envfile and define environmental variables by following '.env.sample'. - Build the Docker container using Docker Compose:
docker-compose build - Access list of containers:
docker ps -a - Create a superuser for accessing the Django admin panel and API:
docker exec -it <container_id here> python manage.py createsuperuser - Start the Docker container:
docker-compose up - To stop the container, use:
docker-compose down