https://github.com/coder-abdo/simple-reddit-clone
https://github.com/coder-abdo/simple-reddit-clone
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/coder-abdo/simple-reddit-clone
- Owner: coder-abdo
- Created: 2022-03-21T18:12:16.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-22T21:37:08.000Z (over 4 years ago)
- Last Synced: 2025-01-14T11:58:20.616Z (over 1 year ago)
- Language: TypeScript
- Size: 55.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Reddit Clone
## Description
This a simple reddit clone backend that you can create post, get all posts, get post by its ID, update Post, delete Post, create comments to the post, update comments to the post, and delete comments to the posst.
### Author
Abdelmonaem Shahat a junior Full Stack.
### Techs:
1. TypeORM (handling database).
2. Express JS (handling the requests).
3. Typescript (type safing).
4. Middlewares such as (cors, morgan, dotenv, & helemt).
### Steps to run this project:
1. Run `npm i` command or `yarn`.
2. Setup database settings inside `data-source.ts` file.
- create `.env` file contains these variables:
```
PORT=4000
NODE_ENV=dev
PGHOST='localhost'
PGUSER='postgres'
PGDATABASE='reddit'
PGPASSWORD='test'
PGPORT=5432
```
3. Run `npm start` or `yarn start` command.