Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adisreyaj/flare
Social network for developers.
https://github.com/adisreyaj/flare
angular graphql nestjs prisma typescript
Last synced: 14 days ago
JSON representation
Social network for developers.
- Host: GitHub
- URL: https://github.com/adisreyaj/flare
- Owner: adisreyaj
- License: apache-2.0
- Created: 2022-02-03T14:07:50.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-14T05:52:39.000Z (7 months ago)
- Last Synced: 2024-10-15T04:44:46.586Z (26 days ago)
- Topics: angular, graphql, nestjs, prisma, typescript
- Language: TypeScript
- Homepage: https://flare.adi.so
- Size: 2.23 MB
- Stars: 111
- Watchers: 4
- Forks: 19
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
Flare - Social Network for Developers
The social networking developers have been longing for.
View Demo
ยท
Report Bug
ยท
Request Feature
---
# Flare - Social Network for Developers
Flare is my take on a social network for developers. It's built entirely around the needs and interests of software developers. Flare is my entry for the Netlify x Hashnode Hackathon ๐ฅTL;DR: Flare is a new kind of social networking site made especially for software developers. Twitter is a really great place where developers hang out and share insightful tweets. But there is something that is lacking there.
## Features โจ
Here are some features that I planned for Flare. The ones implemented right now are marked. The fundamental idea is to support writing small posts within Flare. So the concept of blocks came. Blocks are used to create a flare, you can have text, code, images, etc in a single flare. Each of these smaller items that make up a flare is called a block.- Share Code snippets โ
- Share terminal scripts โ
- Share Images โ
- Comments โ
- Bookmarks โ
- Show Spotify last played songs โ
- Header Image promotions โ
- Kudos โ
- Connect Hashnode blog โ
### Profile Page
### Mobile View
## Running Locally ๐ป
### 1. Clone the repo
```sh
git clone https://github.com/adisreyaj/flare.git
```
### 2. Initialize the submodule (UI components)I created a small UI component library called Zigzag that is used in the project as a submodule.
```sh
git submodule update --init
```### 3. Install the dependencies
```sh
npm install
```### 4. Setup the environment variables
Set up all the required environment variables required for the back-end:
```
NODE_ENV=development
DATABASE_URL=mysql://root:root@localhost:3307/flare
FRONT_END_CALLBACK_URL=http://localhost:4200/auth/callback# JWT sign secret
JWT_SECRET=veryverysecretkey
JWT_EXPIRY="3d"
COOKIE_SECRET=veryverysecretsessionkey# Google OAuth Details
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_CALLBACK_URI=http://localhost:3333/api/auth/google/callback# Github OAuth Details
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GITHUB_CALLBACK_URI=http://localhost:3333/api/auth/github/callback# Queue
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=# Object Storage
S3_ENDPOINT=
S3_REGION=
S3_BUCKET=
S3_ACCESS_KEY_ID=
S3_SECRET_ACCESS_KEY=
```### 5. Prepare the Database
Use docker-compose to spin up MySQL and Redis databases.
```yml
version: '3.1'
services:
db:
image: mariadb
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: flare
ports:
- '3307:3306'
volumes:
- /Users//Desktop/code/db:/var/lib/mysql
cache:
image: redis
restart: always
ports:
- '6379:6379'
volumes:
- /Users//Desktop/code/cache:/var/lib/redis
```### 6. Set up the Database
Run the command to populate the DB with tables:
```sh
npm run prisma:migrate
```### 7. Generate the GraphQL interfaces from the schema
Run the command to generate the required types:
```sh
npm run generate:gql
```### 8. Start up the UI and Back-end
For UI:
```sh
npm start
```For Back-end
```sh
npm start api
```UI: `http://localhost:4200` & GQL: `http://localhost:3333`
You are all set for exploring Flare locally.
## Links and References ๐
| Title | Link | Description |
|--------------|---------------------------------|--------------------------------------------------|
| Angular | https://angular.io/ | Front-end framework |
| NestJs | https://docs.nestjs.com/ | Back-end framework based on NodeJs |
| Netlify | https://www.netlify.com/ | Deployment for UI |
| Prisma | https://www.prisma.io/ | Node.js and TypeScript ORM |
| Tailwind CSS | https://tailwindcss.com/ | Utility first CSS framework |
| Nx | https://nx.dev/#getting-started | Build system with monorepo support |
| PM2 | https://app.pm2.io/ | Advanced, production process manager for Node.JS |
| Upstash | https://upstash.com/ | Serverless Redis DB |
| Backblaze | https://www.backblaze.com/ | Cloud Storage |## Roadmap
See the [open issues](https://github.com/adisreyaj/flare/issues) for a list of proposed features (and known issues).
## License
Distributed under the Apache 2.0 License. See `LICENSE` for more information.
## Show your support
Please โญ๏ธ this repository if this project helped you!