atulmy / crate
- среда, 18 апреля 2018 г. в 00:17:32
JavaScript
👕 👖 📦 A sample web and mobile application built with Node, Express, React, React Native, Redux and GraphQL. Very basic replica of stitchfix.com / krate.in (allows users to get monthly subscription of trendy clothes and accessories).
Click on image to view fullscreen and zoom
code
├── api (api.example.com)
│ ├── public
│ ├── src
│ │ ├── config
│ │ ├── migrations
│ │ ├── modules
│ │ ├── seeders
│ │ ├── setup
│ │ └── index.js
│ │
│ └── package.json
│
├── mobile (Android, iOS)
│ ├── assets
│ ├── src
│ │ ├── modules
│ │ ├── setup
│ │ ├── ui
│ │ └── index.js
│ │
│ └── package.json
│
├── web (example.com)
│ ├── public
│ ├── src
│ │ ├── modules
│ │ ├── setup
│ │ ├── ui
│ │ └── App.js
│ ├── storybook
│ │
│ └── package.json
│
├── .gitignore
└── README.md
git clone git@github.com:atulmy/crate.git crate
code
directory cd code
cd api
and npm run setup
cd web
and npm install
cd mobile
and npm install
/api/src/config/database.json
for database credentials/api/src/config/config.json
for API port (optional)/web/.env
for API URL (optional)/mobile/src/setup/config.json
for API URL (tip: use ifconfig
to get your local IP address)cd api
and npm start
, browse GraphiQL at http://localhost:3000/cd webapp
and npm start
, browse webapp at http://localhost:8000/cd mobile
and npm start
, browse mobile on either emulator or using Expo on your mobile phoneCopyright (c) 2018 Atul Yadav http://github.com/atulmy
The MIT License (http://www.opensource.org/licenses/mit-license.php)