/fastfeet

Primary LanguageJavaScript

FastFeet, The future of parcel deliveries! 📫 🚚💨

Your order treated with great affection. 💌

Cloning this project

$ git clone https://github.com/splhead/fastfeet.git

❗️ Requisites

To run this all project, you need have be the packages installed:

💾 Backend

  • API RESTFUL created with Node.js using express.

  • For database use PostgresSQL with sequelize.

⚡️ Start

  • For use this api you need have be installed PostgresSQL, I'm use Docker, but this is optional.
  • If you don't want installing DOCKER, use convencional Postgres installation.

Runing Postgres using DOCKER: 🐋

$ docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres

If you already have a container with Postgres, run:

$ docker start "CONTAINER DOCKER ID"
  • For background jobs I'm using Redis with DOCKER.
  • If you don't want installing DOCKER, use convencional installation of Redis.

Runing Redis using DOCKER: 🐋

$ docker run --name some-redis -d redis

If you already have a container with Rerdis, run:

$ docker start "CONTAINER DOCKER ID"

You need copy file .env.example to .env in backend folder and change values

Now in your terminal, run:

$ cd backend

$ yarn

$ yarn sequelize db:create

$ yarn sequelize db:migrate

$ yarn sequelize db:seed:all

$ yarn dev

To start queue to Mail send

$ cd backend

$ yarn queue

To debugin, run:

yarn dev:debug

Frontend

The backend needed.

The default user is admin@fastfeet.com and password 123456

Copy file .env.example to .env in frontend folder and change values

Now in your terminal, run:

$ cd frontend

$ yarn

$ yarn start

Frontend

Mobile

ps: Only android version was tested in mobile. The backend needed.

Now in your terminal, run:

$ cd mobile

$ yarn

$ yarn android

Feito com 💜 by Silas P Ladislau