Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/kadirermantr/news-hub

My graduate project @Patika.dev
https://github.com/kadirermantr/news-hub

backend bootstrap php

Last synced: about 10 hours ago
JSON representation

My graduate project @Patika.dev

Awesome Lists containing this project

README

        

# News Hub

- **Tech Stack:** [Tech Stack File](https://github.com/kadirermantr/news-hub/blob/main/techstack.md)

## Installation

```bash
composer install
cp .env.example .env
docker-compose up -d
```

This command adds autoload, a helper function, and requirements to the composer file. It also creates a database and imports demo records.

- DB_PASSWORD=`root`

## User Accounts
- Emails:
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- Password: 123456

---

## Maintenance Mode
To put the website into maintenance mode, the `MAINTENANCE_MODE` variable in the `.env` file should be set to `true`. By default, the value of this variable is `false`.

## API
- http://localhost/api/getNews?id=1
- http://localhost/api/allNews
- http://localhost/api/allNews?category=2

---

**Note:** You can access the first version of this project from [here](https://github.com/teknasyon-bootcamp/bitirme-projesi-kadir).