Git Product home page Git Product logo

fastfeet-1's Introduction

FastFeet

FastFeet Application from Rocketseat GoStack

โšก ReactJS application to obtain the GoStack bootcamp certify

GitHub language count Made by Lรฉu Almeida

FastFeet presentation

Separated repositories with your own commits and presentations:

๐Ÿ”Œ Backend | ๐Ÿ’ป Frontend | ๐Ÿ“ฑ Mobile App

Introduction

Fastfeet is a fictitious logistic company and this repository belong to the business logic and is the basis of a general structure and all of this be a part of the Rocketseat bootcamp certify.

๐Ÿ”Œ Prerequisites

๐Ÿ” API Instructions

First get all the requirements installed on your system. You will need to run the API using some Docker Images like PostgreSQL and Redis. Certified that do you have wall prerequisites, start the docker images dependencies:

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

# Execute the Redis docker
$ sudo docker run --name redisfastfeet -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, is all ok
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 separated 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 instructions

Make a clone from the repo and install the dependencies. (Certify yourself that the api is running)

# 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 fastfeet-app

# Install all dependencies using Yarn
$ yarn

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

# Run the project
$ react-native run-android

ยฉ๏ธ License

MIT License.

See LICENSE for details.


fastfeet-1's People

Contributors

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