Giter Site home page Giter Site logo

gondor's Introduction

Gondor

A platform for internal tools at Coding Blocks, hosted at https://tools.codingblocks.com. This project is part of boss, please check for issues here. For any queries regarding setup or contribution, feel free to join discord and post in #gondor channel.

Setup

Installing Dependencies

yarn

Setting Up Database

Follow the postgresql guidelines, download an install postgres v9.6.

Create Database

psql -U postgres
> create database gondor;
> \q

Update Env Vars

touch .env

#.env
DB_HOST=127.0.0.1 #optional
DB_USERNAME=postgres #or any other postgres username 
DB_NAME=gondor #optional
DB_PASSWORD= #postgres user password if any

Run Migrations

yarn sequelize db:migrate

Setting Up OneAuth

This project uses OneAuth as a signle sign on server. For authentication it is required for OneAuth to be either running locally or to have a client application created here.

(optional) Please follow the instructions here to setup up OneAuth locally.

Config for OneAuth Client App

domain = http://localhost:3000
default url = http://localhost:3000
callback url = http://localhost:3000/api/login/callback

If you have setup OneAuth locally, then create a client application, get the ONEAUTH_CLIENT_ID & ONEAUTH_CLIENT_SECRET and add it to your .env.

Otherwise, similarly create a client application for authentication here, get the ONEAUTH_CLIENT_ID & ONEAUTH_CLIENT_SECRET and add it to your .env.

Add Env Vars

#.env
ONEAUTH_URL=http://localhost:3838 #include only if oneauth setup locally
ONEAUTH_CLIENT_SECRET=<client_id>
ONEAUTH_CLIENT_SECRET=<client_scret>

Running Development Server

yarn dev

Open http://localhost:3000 with your browser to see the result.

Learn More

Take a look at the following resources:

gondor's People

Contributors

thenamankumar avatar tathagat2006 avatar rajdeepj1363 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.