An open API service indexing awesome lists of open source software.

https://github.com/bibeklakra91/newsflash

Webapp for quick personal updates, just like tweeter. Basic full-stack app to understand the fundamentals. Tech stack: [ Django, AWS s3, Vercel, PostgreSQL + Railway ]
https://github.com/bibeklakra91/newsflash

aws-s3 django postgresql vercel

Last synced: 2 months ago
JSON representation

Webapp for quick personal updates, just like tweeter. Basic full-stack app to understand the fundamentals. Tech stack: [ Django, AWS s3, Vercel, PostgreSQL + Railway ]

Awesome Lists containing this project

README

          

# NewsFlash

NewsFlash is a web application for quick personal updates, similar to Twitter. It is designed to help users understand the fundamentals of a full-stack application. I have added challenges I faced as well as bullet points for resume as well

## Tech Stack
- **Backend:** Django
- **Frontend:** HTML, CSS templates & Boostraped code
- **Database:** PostgreSQL
- **Hosting:** Vercel, AWS S3, Railway

## Features
- Post personal updates
- View updates from other users
- Media storage with AWS S3
- Deployed on Vercel with PostgreSQL database managed by Railway

## Getting Started

### Installation

1. Clone the repository:
```bash
git clone https://github.com/BibekLakra91/NewsFlash.git
cd NewsFlash
```

2. Install dependencies:
```
pip install -r requirements.txt
```
```
pip install psycopg2
```
Vercel absolutely hate psycopg2, I have not added this to requirements.txt but it is necessary to run on local server. Remove this package before creating PRs

3. Create .env file and populate these fields
```
AWS_ACCESS_KEY_ID =
AWS_SECRET_ACCESS_KEY =
AWS_STORAGE_BUCKET_NAME =
AWS_S3_REGION_NAME =

DB_NAME =
DB_USER =
DB_PASSWORD =
DB_HOST =
DB_PORT =
```
3. Set up the database:
```bash
python manage.py migrate
```

4. Run the server:
```bash
python manage.py runserver
```

5. Open your browser and go to `http://127.0.0.1:8000/`

## Contributing

1. Fork the repository.
2. Create a new branch (`git checkout -b feature-branch`).
3. Commit your changes (`git commit -m 'Add new feature'`).
4. Push to the branch (`git push origin feature-branch`).
5. Open a pull request.