Coder Social home page Coder Social logo

segware's Introduction

Segware Test

React Native App for Posts management.

Features:

  • List posts (All that have been created from different devices)
  • Edit a post created on a device
  • Delete a post created on a device
  • Create a post
  • Upvote a post
  • Supported languages: Spanish and English (Default English)
  • Base support (code) for multi-themes
  • Use of Websockets for broadcasting update posts

Project structure

The mobile application and the backend with the APIs are contained in the repository:

segware
│   README.md
└───app
└───backend

Run the backend

For ease of testing I'm using a MongoDB database in a cloud service (mlab). It's not necessary to run a mongod service. The connection data is established in the files backend/config/production.json and backend/config/test.json (they should be like environment variables but as I said it's for ease of testing).

# Inside backend folder
$ npm install ---> Only first time
$ npm start

Run the app

Configure the URL where the backend is running in the file app/utils/constants.js:

export const SPLASH_TIME = 2700;
export const IP = '192.168.0.104:3530'; // Update here with the backend IP

Run Metro server:

# Inside app folder
$ npm install  ---> Only first time
$ npm start

# Run Android
$ npm run android

# Run IOS
npm run ios

Note: If you have problems running in IOS you must delete the app/ios/Pods and app/ios/build folders. Delete the files app/ios/app.xcworkspace and app/ios/Podfile.lock. Then inside the ios folder execute the command Pod install.

Run tests

# Inside backend folder
$ npm run test

# Inside app folder
$ npm run test

segware's People

Contributors

camilo5972 avatar

Watchers

 avatar  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.