Skip to content

A ReactJS, React Native and NodeJs Logistic Company

Notifications You must be signed in to change notification settings

d-klotz/fastfleet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fastfleet is a fictitious logistic company.

📚 This is a study project made for fun using React, React Native and Node.js.

💥 Tech Stack

  • React.Js
  • Redux
  • Socket.io
  • Mongodb
  • Sequelize
  • Jsonwebtoken
  • Node.JS
  • Multer
  • Redis
  • postgress
  • docker
  • Express
  • React Native
  • Expo

🔌 Prerequisites

🔐 API Instructions

First get all the requirements installed on your system. In order to run the APIs, you need to use some Docker Images like PostgreSQL and Redis.

Start the docker images dependencies:

# Change the <password> below and on .env file to run PostgreSQL
$ sudo docker run --name fastfleet -e POSTGRES_PASSWORD=<password> -p 5432:5432 -d postgres:11

# Execute the Redis docker
$ sudo docker run --name redisfastfleet -p 6379:6379 -d -t redis:alpine

Getting started the API Restful backend

Make a clone from the repo and install the dependencies

# After clone this repo, enter in the API folder
$ cd api

# Install all dependencies using Yarn
$ yarn

Certify yourself that all environments are correct

# Copy the .env folder
$ cp .env.example .env

# Insert your environments into .env file
$ nano .env

Prepare the PostgreSQL database

# Migrate the database
$ yarn sequelize db:migrate

# Run the seeds
$ yarn sequelize db:seed:all

Start the project

# Run the development server
$ yarn dev

# Case the output appears like this, you are set to go
yarn run v1.19.1
$ nodemon src/server.js
[nodemon] 2.0.2
[nodemon] to restart at any time, enter `rs`
[nodemon] watching dir(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node -r sucrase/register src/server.js`

# The backend will run on port 3333
# https://localhost:3333

In a new terminal, run the queue

# Run the queue to enable mails and dependencies that uses bee-queue
$ yarn queue

# Case the output appears like this, is all ok
yarn run v1.19.1
$ nodemon src/queue.js
[nodemon] 2.0.2
[nodemon] to restart at any time, enter `rs`
[nodemon] watching dir(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node -r sucrase/register src/queue.js`

💻 Web Application instruction

# After clone this repo, enter in the Web folder
$ cd web

# Install all dependencies using Yarn
$ yarn

# Run the project
$ yarn start

📱 Mobile App instructions (Has not been tested on iOS)

Make a clone from the repo and install the dependencies

# After clone this repo, enter in the DevRadar folder
$ cd fastfleet-app

# Install all dependencies using Yarn
$ yarn

# Run the react native metro bundle
$ react-native start

# Run the project
$ react-native run-android

About

A ReactJS, React Native and NodeJs Logistic Company

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published