Giter Club home page Giter Club logo

trueque's Introduction

Treque

Service Exchange Platform


Prerequisites & Software

(*) In order to install Humble CLI open a Terminal and paste the following instruction. Note that you will be asked for your system password, this is necessary to create a few symlinks and have the humble command available in your Mac.

bash <(curl -s https://raw.githubusercontent.com/marcopeg/humble-cli/master/remote-setup.sh)

The following software is good to have but not really mandatory:

  • NVM - Node Version Manager, to run the sofware without Docker
  • Postico - PostgreSQL database client

How To Run The Project

First Time Setup

Create a file named .env.local in the project's root folder and paste the following configuration:

PG_PORT=5432
PG_USERNAME=postgres
PG_PASSWORD=postgres
PG_DATABASE=postgres
JWT_SECRET=xxx

NOTE: You can change the values as you want, this is just some common defaults.

Run Production

Open a Terminal and run:

humble prod

This will build the project and run it in production mode. As close as possible to the software that will be executed in the real servers.

NOTE: depending on your computer performances, this process may take up to a couple of minutes to complete. Take a cup of coffee, a beer... just relax.

When everything is done, you should be able to run the app at:

http://localhost:8080

When you want to stop the project, just kill the program with Ctrl + C, then run make unprod to stop all the related services.

Run Development

Open a Terminal and run:

humble dev

This will run the project in development mode, which is quite heavier than the production as the solution will be constantly updated based on changes in the source code.

NOTE: depending on your computer performances, this process may take up to a couple of minutes to complete. Take a cup of coffee, a beer... just relax.

When everything is done, you should be able to run the app at:

# App's UI
http://localhost:3000

# App's API
http://localhost:3000/api

When you want to stop the project, just kill the program with Ctrl + C, then run make undev to stop all the related services.

Run the Styleguide

Open a Terminal and run:

humble dev-styleguide

This will run the dumb components only. It's a development tool that let us focus on the pure UI work, without the need for the whole application.

NOTE: depending on your computer performances, this process may take up to a couple of minutes to complete. Take a cup of coffee, a beer... just relax.

When everything is done, you should be able to run the app at:

http://localhost:6060

When you want to stop the project, just kill the program with Ctrl + C, then run make undev to stop all the related services.

trueque's People

Contributors

marcopeg avatar pablosu avatar

Watchers

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