Giter Site home page Giter Site logo

mustisid13 / manch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ibhavikmakwana/manch

1.0 0.0 0.0 886 KB

Trying to develop an open source social media app

License: BSD 2-Clause "Simplified" License

Ruby 2.06% C++ 3.78% C 0.51% Objective-C 0.03% Java 0.49% Kotlin 0.18% Dart 84.35% Swift 1.96% CMake 6.64%

manch's Introduction

Social Media App (नाम में क्या रखा है :P) Analyze

All Contributors

Screenshots

Login Login Error Sign up
Screenshot Screenshot Screenshot
Edit Profile Filled Edit Profile Profile
Screenshot Screenshot Screenshot

Getting Started

To run this Project you'll need an account on the Supbase.

  1. After creating an account run below query from the Supabase SQL editor to create required table.
-- Create a table for Profiles
create table if not exists profiles (
  id uuid references auth.users on delete cascade not null,
  updated_at timestamp with time zone,
  created_at timestamp with time zone,
  user_name text unique,
  email text unique,
  name text,
  avatar_url text,
  website text,
  about text,

  primary key (id),
  unique(user_name),
  unique(email)
);

alter table profiles enable row level security;

create policy "Public profiles are viewable by everyone."
  on profiles for select
  using ( true );

create policy "Users can insert their own profile."
  on profiles for insert
  with check ( auth.role() = 'anon' );

create policy "Users can update own profile."
  on profiles for update
  using ( auth.uid() = id );

-- Set up Realtime!
begin;
  drop publication if exists supabase_realtime;
  create publication supabase_realtime;
commit;
alter publication supabase_realtime add table profiles;

-- Set up Storage!
insert into storage.buckets (id, name)
values ('avatars', 'avatars');

create policy "Avatar images are publicly accessible."
  on storage.objects for select
  using ( bucket_id = 'avatars' );

create policy "Anyone can upload an avatar."
  on storage.objects for insert
  with check ( bucket_id = 'avatars' );

create policy "Anyone can update an avatar."
  on storage.objects for update
  with check ( bucket_id = 'avatars' );
  1. Go to Authentication => settings and make sure Disable email confirmations is Active or Enabled.

Screenshot 2021-07-31 at 11 05 09 AM

  1. After successfully running above query get the Base url and Base key and pass it to the command line args. while running flutter app.
flutte run --dart-define=BASE_URL=supabase_base_url --dart-define=BASE_KEY=supabase_base_key --dart-define=OAUTH_CLIENT_ID=oauth_client_id

That's it! You'll be able to run this app, Ping me if you stuck on any step.

Let's create an open source alternative of the social media apps out there together.

Generating files

  • flutter pub run build_runner build

If code generation fails, consider running it with the flag --delete-conflicting-outputs

Design Credit

https://www.figma.com/proto/pVVxJrrPmgo2OR2D5yEj0o/dianfei-SocialAppUIKit-Updated-(Community)?node-id=25%3A1577&scaling=min-zoom

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Sudhanshu Mittal
Sudhanshu Mittal

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

manch's People

Contributors

ibhavikmakwana avatar adityathakurxd avatar allcontributors[bot] avatar mittal-sudhanshu avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.