All Projects → AmericanAirlines → Hangar

AmericanAirlines / Hangar

Licence: MIT License
Hackathon sponsorship made easy

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Hangar

Batteries-Included-Next.js
A starting boilerplate for a TS Next.js project with batteries included. Tailwind CSS for styling, Jest and React Testing Library working with path aliases and node-mock-http for API route testing.
Stars: ✭ 35 (+2.94%)
Mutual labels:  jest, nextjs
Shop
🛍🛒 Full-stack React/Prisma/TS/GraphQL E-Commerce Example
Stars: ✭ 359 (+955.88%)
Mutual labels:  jest, nextjs
nextal
Starter template for NextJs with TypeScript. Supports Tailwind with CSS-Modules. Jest and @react/testing-library configured and ready to go. Also ESLint, Prettier, Husky, Commit-lint and Atomic Design for components.
Stars: ✭ 88 (+158.82%)
Mutual labels:  jest, nextjs
personal-blog
✍️ 个人技术博客
Stars: ✭ 79 (+132.35%)
Mutual labels:  jest, nextjs
Next Advanced Apollo Starter
Advanced, but minimalistic Next.js pre-configured starter with focus on DX
Stars: ✭ 131 (+285.29%)
Mutual labels:  jest, nextjs
monorepo-typescript-next-the-sane-way
A monorepo example using TypeScript and Next.js
Stars: ✭ 104 (+205.88%)
Mutual labels:  jest, nextjs
Coderplanets web
the most sexiest community for developers, build with React, Mobx/MST, GraphQL, Styled-Components, Rxjs, Ramda ... and ❤️
Stars: ✭ 314 (+823.53%)
Mutual labels:  jest, nextjs
nextjs-baseweb
Slightly opinionated scaffold of Next.js and Base Web.
Stars: ✭ 46 (+35.29%)
Mutual labels:  jest, nextjs
Moveit
🚀 NLW #4 | React+ TypeScript + NextJS + StyledComponents + Firebase + MongoDb +Axios
Stars: ✭ 39 (+14.71%)
Mutual labels:  jest, nextjs
Egghead Next
The frontend for egghead.io.
Stars: ✭ 896 (+2535.29%)
Mutual labels:  jest, nextjs
Ts Monorepo
Template for setting up a TypeScript monorepo
Stars: ✭ 459 (+1250%)
Mutual labels:  jest, nextjs
100 Days Of Code Frontend
Curriculum for learning front-end development during #100DaysOfCode.
Stars: ✭ 2,419 (+7014.71%)
Mutual labels:  jest, nextjs
Nextjs Ts
Opinionated Next JS project boilerplate with TypeScript and Redux
Stars: ✭ 134 (+294.12%)
Mutual labels:  jest, nextjs
portfolio
My personal portfolio website, proudly built with Next.js, TypeScript and Tailwind
Stars: ✭ 165 (+385.29%)
Mutual labels:  jest, nextjs
react-keycloak-examples
Examples for react-keycloak packages
Stars: ✭ 110 (+223.53%)
Mutual labels:  nextjs
node-blog-app
🌐 A node+espress+mongoose+react+nextjs blog
Stars: ✭ 12 (-64.71%)
Mutual labels:  nextjs
jest-launchdarkly-mock
Easily unit test LaunchDarkly feature flagged components with jest
Stars: ✭ 14 (-58.82%)
Mutual labels:  jest
glific-frontend
Frontend for the Glific platform
Stars: ✭ 18 (-47.06%)
Mutual labels:  jest
dev-cover
🌐 Get and publish your developer portfolio with just your username
Stars: ✭ 155 (+355.88%)
Mutual labels:  nextjs
theodorusclarence.com
💠 Personal website and blog made using Next.js, TypeScript, Tailwind CSS, MDX Bundler, FaunaDB, and Preact.
Stars: ✭ 205 (+502.94%)
Mutual labels:  nextjs

License: MIT codecov Total alerts Language grade: JavaScript

Sponsoring a student hackathon? You've come to the right place! American Airlines loves to help students learn new tech and we're passionate about being a big part of hackathons.

⚠️ v2.x is in Development!

We've decided to take Hangar in a new direction and are working on the next generation of the platform. Check out the v2 branch if you're interested!


Hangar v1.x

Whether you need help with judging which hack did the best job of tackling your challenge, you want to connect with students who need help, or you want to recruit students and capture resumes, Hangar will make your experience easy and enjoyable for everyone.

If you need insipiration for challenges, check out some of our past challenges.


Getting Started

  1. Local Development
  2. Customizing Hangar
  3. CI/CD
  4. Contributing

Local Development

Node

Hangar uses Node.js as its runtime. To use the Hangar, you'll need to download and install the LTS (Long Term Support) version, which is currently 14.x.

⚠️ If you decide to use another version of Node, such as 13.x or 15.x, you may experience unexpected issues.

Postgres

Hangar uses Postgres 11, so you'll need to set it up on your machine. If you don't have Postgres installed already, see the Installation and Use section below.

Create a database (we suggest hangar, if you chose something else or are running your server on a different port, make sure to create a DATABASE_URL value in .env with your override URL) in the PostgreSQL 11 server (do not make a new server), and then run the app. If your Postgres server is protected by a password, you'll need to add PGUSER and PGPASSWORD to your .env file where PGUSER will be postgres and PGPASSWORD will be the Postgres server password entered during installation.

When the app is deployed to a cloud environment, the DATABASE_URL .env var will be used (and is automatically set in Heroku when an associated service is connected to your app).

Installation and Use

macOS

We recommend using Postgres.app as the installation doesn't require a password and is generally easier to use that the traditional Postgres app below.

Windows/macOS/Linux

During the installation process (if you follow the steps on postgresql.org), you will be prompted to set a password - make sure to use something you'll remember.

Viewing/Editing the DB

If you'd like a visual way of viewing or editing your local database, try using TablePlus.

Environment Variables

For details on local environment variable configuration, expand this section.

Environment

  • NODE_ENV="environment"

    required, set to one of the following: development, test, or production

Heroku Deployment

Environment variables needed if deploying the database to Heroku.

  • DB_SSL_DISABLED="true"

Slack

Environment variables needed for the slack application after you've created the slack application. Note: only one platform's (slack/discord) environment variables are required.

  • SLACK_SIGNING_SECRET="XXXXXXXXXXXXXXXX"

    required, from slack, under App Credentials you can find Signing Secret

  • SLACK_BOT_TOKEN="xoxb-XXXXXXXXXXXXXXXX"

    required, from slack, under Install App you can find Bot User OAuth Token

  • SLACK_NOTIFICATIONS_WEBHOOK_URL="https://hooks.slack.com/..."

    required, from slack, under Add Features & Functionality and Incoming Webhooks you can find the Webhook UR if created

Discord

Environment variables needed for the discord application after you've created the discord application. Note: only one platform's (slack/discord) environment variables are required.

  • DISCORD_BOT_TOKEN="***********************************************************"

    required, from discord, under Bot you can copy the token number

  • DISCORD_BOT_CHANNEL_IDS="0123456789012345678,0123456789012345678"

    required, comma separated channel IDs, to get the channel IDs: in The Discord application go to Settings > Appearance > Check developer mode. Right click the channel name and copy the channel ID (Copy ID).

Secrets

Environment variables needed to set app secrets for user groups

  • JUDGE_SECRET="secret"

    required, create your own secret

  • SUPPORT_SECRET="secret"

    required, create your own secret

  • ADMIN_SECRET="secret"

    required, create your own secret

  • CHALLENGE_URL="https://your-sponsor-challenge.com"

    optional, link to webpage with hackathon challenge info

Postgres

Environment variables needed to connect to a Postgres server.

  • PGUSER="postgres"

    required if password-protected, PGUSER="postgres"

  • PGPASSWORD="password"

    required if password-protected, password entered during server installation

  • DATABASE_URL="postgres://localhost:5432/hangar"

    required if database is not on default port or called hangar

Starting the App

The best way to start the app and work on it is by using npm run dev, which will start the app and then restart the app whenever a TypeScript file changes. After modifying a non-Typescript file, restart the app by typing rs into the same terminal you ran npm run dev from and then hitting return.

After the app starts, it will be accessible on localhost:3000 (unless the port was modified via .env).

Handling App Events Locally

In order to make your app accessible to platforms like Slack, you'll need to use an app like ngrok to obtain a URL which can be used within your Slack app configuration. Install ngrok globally with npm i ngrok -g and then run ngrok http 3000 to create the tunnel. After it starts, use the following URL output to route web traffic to your app.

Creating a Slack App

Before you can use Hangar, you'll need to create a Slack app. Follow our instructions for creating an app. Once you're done with the first section, continue below.

Completing Your Configuration

Once your app is running, copy your app's URL and complete the final configuration of your Slack app.

Advanced

Database Changes

If database schema is changed, the migrations must be changed accordingly. After starting the app (or using npm run typeorm migration:run), make changes to files in the src/entities directory as needed and then run npm run typeorm migration:generate -- -n MigrationName where MigrationName is the name of the migration (without the timestamp).

Migrations

Do not update or remove an existing migration, as this can cause unexpected issues with local and production data. All database schema changes must be made in a new migration.


Customizing Hangar

If you'd like to customize the app, fork this repo. If you have an idea for something and you'd like to contribute back to this project, create a new Feature request. If we like your suggestion, we'll ask you to open a Pull Request. For more details, check out our Contributing Guidelines.

When you're ready to deploy your app, simply change the URL for the Deploy to Heroku button then merge it into your main branch. Once your repo is updated, just use that button you'll be good to go!


CI/CD

This project uses GitHub Actions for Continuous Integration and leverages Heroku for Continuous Deployment.

If you fork this project, deploy your app using the Deploy to Heroku button above, then navigate to the Deploy tab of your app in Heroku and configure Continuous Deployment as relevant for your app.

Github Secrets

This project uses GitHub Secrets which ensure that certain environment variables are encrypted and securely stored for use in GitHub Actions. In order to create a secret, go to the settings tab in your GitHub Repository, and click on the secrets tab. Here you can set a secret by clicking New Secret and adding the secret name in addition to its value. Within workflows, the values can be utilizes with the following syntax: ${{ secrets.YOUR_SECRET }}.

CodeCov

The secret in used for CodeCov should be named CODECOV_TOKEN, and the value of this token will be the Upload Token generated when linking CodeCov to your Hangar repo. Secret values can also be updated in the secrets tab.

If you need help setting up CodeCov, instructions to do so can be found at the CodeCov website.

Contributing

Interested in contributing to the project? Check out our Contributing Guidelines.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].