https://github.com/mateuseap/social-media
App developed using Django (a Python web framework)
https://github.com/mateuseap/social-media
django postgresql python
Last synced: 3 months ago
JSON representation
App developed using Django (a Python web framework)
- Host: GitHub
- URL: https://github.com/mateuseap/social-media
- Owner: mateuseap
- Created: 2023-01-16T07:55:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-24T05:49:25.000Z (over 3 years ago)
- Last Synced: 2025-04-05T22:11:40.702Z (about 1 year ago)
- Topics: django, postgresql, python
- Language: JavaScript
- Homepage:
- Size: 2.4 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Social Media
## 🔧 Pre-requisites
Before running the project, you must have the following tools installed on your machine:
* [Python v3.11.0](https://www.python.org/downloads/release/python-3110/)
* [Django v4.1.5](https://docs.djangoproject.com/en/4.1/topics/install/#installing-official-release)
Also, you will need to clone the repository:
```bash
## Cloning the repository
git clone https://github.com/mateuseap/social-media
## Entering the directory
cd social-media
```
## 🚀 Project setup
### > Running the migrations
To run the migrations, you'll need to run the command below:
```bash
## Running the migrations
python manage.py migrate
```
### > Creating a superuser
You'll need to create a superuser to access the admin panel:
```bash
## Creating a superuser
python manage.py createsuperuser
```
After running the above command, you just need to follow the steps below to create your superuser:

With a superuser created, now you have the access to the admin panel. If the project is running, you can go to [http://127.0.0.1:8000/admin](http://127.0.0.1:8000/admin) and login into the admin panel using your superuser infos:

After you log in, you'll have the access to info about the database and much more inside one page:

### > Running the app
You'll need to run the command below:
```bash
## Running the app
python manage.py runserver
```
Open [http://127.0.0.1:8000](http://127.0.0.1:8000) to view it in the browser.