Giter Club home page Giter Club logo

efrei-expo-2019's Introduction

efrei-expo-2019

LeBonAngle - School React-Native project

Pierre Hérissé - Antoine Nivoy

Requirements

  • Use GraphQL API, Expo, React Navigation
  • Users CRUD
  • Posts CRUD
  • Add Camera handling for Posts
  • Display Posts list
  • Filter Posts list
  • Display Post details
  • Display User details, with the list of his own Posts
  • Only needs npm install && expo start to start
  • Publish project on Expo, using unique expo.slug identifier
  • Publish API on Heroku

Bonuses

  • Host images on a S3 bucket
  • Add profile picture for Users, visible on Posts and Profile
  • Send notification to Seller when an User is "interested"
  • Display notification list of Posts sold for Seller
  • Display "interested" Posts list for User
  • Auth by cellphone number, code sent by SMS
  • Add Geolocation of Seller in Posts
  • Display Posts on a map
  • Share Post to a contact via SMS
  • Payment for Seller, Buyer via Stripe

Server Side

The server is host on Heroku, and the GraphQL API interface can be accessed at this URL : https://lebonangle.herokuapp.com/

Run locally

  /efrei-expo-2019/server/$ npm install
  /efrei-expo-2019/server/$ npm run start

Deploy to Heroku

As server is on the same repository as client, we had to push manually the server tree to Heroku, like so :

  /efrei-expo-2019/$ git subtree push --prefix server heroku master

Implementation

There are 3 models that can be used :

  • Users : represents the users that can use CRUD on Posts
  • Posts : represents announces of products created by Users
  • Categories : represents Posts categories, only 1 by post

Each one of these models is persisted on a PostGres database and can be accessed through GraphQL

Queries

Each model as at least 2 queries available :

  • GET ALL
  • GET ONE BY ID

Here is an example to get one user by using his ID :

query {
  user(id: 3) {
    firstname
    lastname
    city
  }
}

Mutations

Each model as at least 3 mutations available :

  • CREATE
  • UPDATE
  • DELETE

Here is an example to create an user :

mutation {
  createUser(data: {
    firstname: "John"
    lastname:"Doe"
    city: "Paris"
  }) {
    id
    firstname
    lastname
    city
  }
}

Client Side

efrei-expo-2019's People

Contributors

seedockh avatar

Watchers

James Cloos avatar  avatar

efrei-expo-2019's Issues

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.