david32145 / file-help

An awesome app done in react-native for storage of files and search any time and view.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

File Help

File Help

An awesome app done in react-native for storage of files and search any time and view.

πŸ‘¨πŸΌβ€πŸ’» Development Contact

David Nascimento

🚢 User Stories

  • An user can do upload of files to server;
  • For each file, the user can info an title, description and an list of labels;
  • The user can search by title, description or tag in an unique field;
  • The user can open your file in browser.

πŸš€ Technologies

In the app was used an stack javascript, with nodejs in backend and react-native in mobile.

♻️ Backend

  • nodejs;
  • mysql;
  • sequelize;
  • multer;
  • express;
  • nodemon.

πŸ“³ Mobile

  • react-native;
  • typescript;
  • axios;
  • date-nfs;
  • react-native-document-picker;
  • react-native-modal;
  • react-native-svg;
  • react-navigation.

🎌 What I've learned

  • Storage of files with nodejs and multer;
  • Create, search and delete database instances;
  • Migrations with sequelize;
  • Relationship in tables of database;
  • API RESTful with express;
  • Upload of files with react-native and axios;
  • Consumer the api resouces with axios;
  • Manager files with react-native-document-picker;
  • Manager class FormData for request of type multpart/form-data;
  • React hooks;
  • Context API and custom hooks;
  • Liking with other applications.

🏘️ Examples

Screenshot

Screenshot

Screenshot

πŸŽ₯ How Usage

Example how usage app.

πŸ†• Create New File

Screen

πŸ‘½ Unknown file

Screen

😎 Open your file in browser

Screen

πŸ” Search in your files

Screen

βœ‹πŸ» Prerequisites

πŸ”₯ Install and Running

πŸ₯Ί Obs. Android only.

  1. Config you environment;
  2. Create an new virtual device and run;
  3. Git clone git clone https://github.com/david32145/file-help.git;
  4. Enter in api folder;
  5. Copy .env.example to .env and fill with your config, in the SERVER_URI is indicated place with your IP_ADDRESS:SERVER_PORT, sever port by default is 3333. Below an example of .env;
SERVER_URI=http://192.168.0.110:3333

DB_USER=root
DB_PASS=root
DB_NAME=file_help
DB_HOST=127.0.0.1
DB_PORT=13306
DB_TYPE=mysql
  1. Up your migrations with yarn migration:up or npm run migration:up;
  2. Run server with yarn dev or npm run dev;
  3. Enter in mobile folder;
  4. Access the file mobile/src/services/ApiRESTService.ts, will find an file like that:
import axios from 'axios';

const api = axios.create({
  baseURL: 'http://192.168.0.110:3333',
});

export default api;

Replace by your SERVER_URI;

  1. Run yarn android or npm run android;
  2. If Metro Bundler not started, run yarn start or npm run start.

About

An awesome app done in react-native for storage of files and search any time and view.


Languages

Language:TypeScript 50.4%Language:JavaScript 15.9%Language:Java 13.3%Language:Ruby 10.8%Language:Objective-C 8.5%Language:Starlark 1.2%