Git Product home page Git Product logo

divide-and-conquer's Introduction

Divide & Conquer

Large teams retrospectives


Released under the MIT license. All Contributors PRs welcome! Code of Conduct

Table of Contents

โ— Code of Conduct

We expect everyone to abide by our Code of Conduct. Please read it. ๐Ÿค

๐Ÿ™Œ๐Ÿป How to Contribute

Check out our Contributing Guide for information on contributing.

๐Ÿƒ How to Run - Dev mode

To run the project you will need the requirements listed below and configure the env files as described in the example. In the next section How to run - with docker you can find instructions on how to run the entire project with docker.

Requirements

  1. Node
  2. Docker
  3. Env files

Env files

An .env file must be present in each app folder (frontend and backend) and it's also needed the .env in the root folder of the project in order to create the database. This files are already provisioned as an example (.env.example) in the respective folders and you can use and edit them. In order to use the example, please remove the suffix .example from the file name.

The frontend .env file have the parameter named SECRET that is required by next-auth on the frontend and to generate it just run the following command openssl rand -base64 32 in the shell then paste it in the .env file.

Database

Since the database is the only app required to run in dev mode. You need to build it running the follow command docker-compose up -d mongo in the project's root folder. The mongo image is downloaded, built and the database is created with the name that is passed as described in the env file parameter called DB_NAME. After the container is built, the init script that's inside the database folder runs in order to create a user to manage and connect to the database from the backend.

Backend

To run this application for the first time run npm i inside the backend folder. Once you have installed the dependencies, simply run: npm run start:dev

Frontend

To run this application for the first time run npm i inside the frontend folder. Once you have installed the dependencies, simply run: npm run dev

๐Ÿƒ How to Run - with docker

In order to run the whole project with docker you need to prepare the .env.example file that is present in the root folder of the project and from there run the following command: docker-compose up -d

Usage

The backend will run on http://localhost:BACKEND_PORT and the frontend on http://localhost:3000. Be aware the frontend root page ("/") is the landing page and has not yet been built so you must manually enter one of the following routes:

  • "/dashboard": dashboard
  • "/auth": authentication

You must register to access the dashboard page

๐Ÿ“ License

Licensed under the MIT License.

Contributors โœจ

Thanks goes to these wonderful people (emoji key):


Nuno Caseiro

๐Ÿ’ป โš ๏ธ ๐Ÿš‡ ๐Ÿ“–

This project follows the all-contributors specification. Contributions of any kind welcome!


xgeeks

xgeeks Open Source

divide-and-conquer's People

Contributors

nunocaseiro avatar gfdias avatar allcontributors[bot] 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.