Skip to content

thy015/OggyStoreManagement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

120 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<<<<<<< HEAD

Welcome to your Expo app 👋

This is an Expo project created with create-expo-app.

Get started

  1. Install dependencies

    npm install
  2. Start the app

     npx expo start

In the output, you'll find options to open the app in a

You can start developing by editing the files inside the app directory. This project uses file-based routing.

Get a fresh project

When you're ready, run:

npm run reset-project

This command will move the starter code to the app-example directory and create a blank app directory where you can start developing.

Learn more

To learn more about developing your project with Expo, look at the following resources:

Join the community

Join our community of developers creating universal apps.

This project is a mobile application built with React Native that communicates with a backend server for data processing and storage. The app is designed to be fast, secure, and user-friendly, making use of modern tools and practices. Features

Client:
    Cross-platform mobile app for iOS and Android.
    User authentication and authorization (JWT).
    Interactive UI with state management.
    RESTful API communication.
Server:
    Backend built with Node.js and Express.
    Database integration (e.g., MongoDB, MySQL).
    User authentication and role-based access control.
    Scalable API endpoints.

Technologies Used Client

React Native
Redux or Context API (for state management)
React Navigation
Axios (for API requests)
Expo (if applicable)

Server

Node.js
Express.js
Database: MongoDB / MySQL
JWT (Authentication)
dotenv (Environment variable management)

Project Structure

root/
├── client/                  # React Native app
│   ├── src/
│   │   ├── components/      # Reusable UI components
│   │   ├── screens/         # App screens
│   │   ├── navigation/      # Navigation setup
│   │   ├── services/        # API services
│   │   └── store/           # State management
│   ├── App.js               # Main app entry point
│   └── package.json
├── server/                  # Backend server
│   ├── routes/              # API routes
│   ├── controllers/         # Route handlers
│   ├── models/              # Database models
│   ├── middleware/          # Custom middleware
│   ├── server.js            # Main server file
│   └── package.json
└── README.md

Getting Started Prerequisites

Node.js installed on your system.
React Native CLI or Expo CLI installed.
MongoDB or MySQL server running (depending on the database used).

Installation

Clone the repository:

git clone https://github.com/your-repo/react-native-app.git cd react-native-app

Install dependencies for both client and server:

# Install client dependencies
cd client
npm install

# Install server dependencies
cd ../server
npm install

Usage Running the Client

Navigate to the client directory:

cd client

Start the React Native app:

npm start

If using Expo, scan the QR code with your device to open the app.

Running the Server

Navigate to the server directory:

cd server

Start the backend server:

npm start

The server will run at http://localhost:5000 (or the port specified in .env).

Environment Variables Client

Create a .env file in the client/ directory and include:

API_URL=http://localhost:5000/api

Server

Create a .env file in the server/ directory and include:

PORT=5000 DB_URI=mongodb+srv://:@cluster.mongodb.net/myDB JWT_SECRET=your_jwt_secret

f121b4fd0dbcf64094cc36ae6167c2602b9e48f6

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors