X Tutup
The Wayback Machine - https://web.archive.org/web/20200518125216/https://github.com/freeCodeCamp/chapter
Skip to content
A self-hosted event management tool for nonprofits
TypeScript TSQL JavaScript Shell
Branch: master
Clone or download

Latest commit

davidals and David Sousa feat: Add columns to control notification flow (#374)
* feat: Add columns to control notification flow

Needed in order to implements featured mentioned on issues #107, #276, #359

* Replace  with

* Make interested field optional on constructors

* Add defaults to new db columns

Co-authored-by: David Sousa <davids@spotify.com>
Latest commit 8a5ddd1 Mar 19, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Standalone dev setup (#339) Feb 19, 2020
api Fix swagger schema errors (#348) Feb 21, 2020
client Separate thunks and redux actions (#372) Mar 15, 2020
data Remove password_digest from User model (#358) Mar 2, 2020
docs/assets Update CONTRIBUTING.md (#362) Mar 12, 2020
pages [WIP] Feature/events crud (#341) Mar 15, 2020
public Add first pass at header component (#300) Dec 24, 2019
scripts Standalone dev setup (#339) Feb 19, 2020
server feat: Add columns to control notification flow (#374) Mar 19, 2020
styles Add first pass at header component (#300) Dec 24, 2019
types testing utils for users (#344) Feb 27, 2020
.all-contributorsrc docs: add Sushmeet as a contributor (#365) Mar 13, 2020
.babelrc Added Location, users, chapter CRUD endpoints with Tests (#343) Mar 14, 2020
.env.example Standalone dev setup (#339) Feb 19, 2020
.eslintignore Util cleanup (#367) Mar 14, 2020
.eslintrc.json testing utils for users (#344) Feb 27, 2020
.gitignore add initial schema dll + diagram Oct 15, 2019
.nvmrc Bump node version (#336) Feb 13, 2020
.prettierrc.js Util cleanup (#367) Mar 14, 2020
CODE_OF_CONDUCT.md feat(docs): Documentation Overhaul (#66) Oct 17, 2019
CONTRIBUTING.md Update CONTRIBUTING.md (#362) Mar 12, 2020
LICENSE Initial commit Oct 14, 2019
README.md docs: add Sushmeet as a contributor (#365) Mar 13, 2020
docker-compose.yml Standalone dev setup (#339) Feb 19, 2020
jest.config.js fix: module-not-found error for typeorm cli (#326) Feb 3, 2020
next-env.d.ts App Skeleton using Next.js, Node/Express, React (#78) Oct 21, 2019
next.config.js fix next config syntax and linting (#118) Oct 21, 2019
nodemon.json App Skeleton using Next.js, Node/Express, React (#78) Oct 21, 2019
ormconfig.js Standalone dev setup (#339) Feb 19, 2020
package-lock.json Add back package-lock.json (#368) Mar 14, 2020
package.json Added Location, users, chapter CRUD endpoints with Tests (#343) Mar 14, 2020
tsconfig.json Event CRUD API (#299) Dec 24, 2019
tsconfig.server.json Added Location, users, chapter CRUD endpoints with Tests (#343) Mar 14, 2020

README.md

Welcome to Chapter

All Contributors

After several years of being dissatisfied with existing group event tools (Meetup, Facebook events) we decided to build our own.

This will be a self-hosted Docker container deployed to the cloud with a one-click and then configured by the owner. No coding required.

Your organization can host an instance of Chapter under a sub-domain of your website, such as chapter.sierraclub.org or chapter.womenwhocode.org.

All of an organization's user data will remain under their control.

Our Vision statement provides more details on the reasons for Chapter.

Terminology

To better communicate and more easily build an API and UI, the current contributors have decided on a collection of terminology to clarify discussions surrounding the Chapter project:

Term Definition Example
instance a web server deployment of the "Chapter" application, managed by an organization. a Docker container running on a web host
organization a non-profit with multiple chapters Women Who Code at the sub-domain: chapter.womenwhocode.org
chapter a container for events and users Women Who Code - New York City
event a meeting with a specific location and time to which users can RSVP Coffee And Code - BistroOne, New York City, NY - April 9, 2020
user an authenticated user who is authorized based on their role(s) Sally Gold - SallyG@example.com
visitor an non-authenticated web browser session with view-only access to public content Anonymous Web Browser Client
owner the role of a user who can configure the "Chapter" application instance and manage administrators for an entire organization Women Who Code - Global IT
administrator the role of a user who can setup and manage chapters and organizers for an organization Women Who Code - European Administrator
organizer the role of a user who can manage a chapter's events, RSVPs, communications, and members Women Who Code - Edinburgh, Local Organizer
member the role of a user who can follow and receive notifications from a chapter and RSVP to events Women Who Code - Edinburgh, Local Member

Tech Stack

We are planning to use the following tools:

A lot of people know these tools, and they're proven to work well at scale.

We will focus on building an open API first. Then, developers can use the API to build their own mobile clients and voice interface clients.

Development Setup

Requirements: Node.js, Docker, internet access

Installing Node.js

Follow instructions for downloading and installing Node.js for your operating system from the official Node.js website.

Ensure you are installing Node 13 and npm 6 or greater.

Installing Docker

See the Docker installation "Supported platforms" section and follow the instructions to download & install Docker Desktop for your operating system (or Docker CE for Linux).

You can find more resources on Docker here:

Starting the Development Server

Open up Terminal/Powershell/bash and navigate to the directory where you want the project to live.

Clone this repository:

git clone https://github.com/freeCodeCamp/chapter

Navigate to the newly cloned repo:

cd chapter

Install dependencies:

npm install

If you're using local setup (no docker), make sure you add your DB credentials to .env file

Running the server:

Docker-compose (RECOMMENDED)

Ensure that Docker Desktop is up and running, then run the following command:

docker-compose up

Wait for the logs to show "server started on port 8000", then navigate to localhost:8000 to view the app.

The server will automatically restart anytime you save a .ts or .js file within the server/ directory.

You can run any command within the container by prefixing it with docker-compose exec app, e.g. docker-compose exec app npm install express

Natively running node in Windows/MacOS/Linux (no docker)

DISCLAIMER: This is a more hands on approach.

This is a lot lighter setup, but you need to provide your own Postgres DB. If you don't want to run one locally you can get it as a service on ElephantSQL.

After you setup the DB instance local or remote, create a database, add the DB name and credentials to .env

MAKE SURE TO SET IS_DOCKER= in .env to blank

npm run dev

Additional DB docs can be found in server/docs/README.md

Testing

Run tests

npm run test

If you're running in docker compose prefix the command with docker-compose exec

NODE_ENV=test docker-compose exec app npm run test

Run tests in watch mode

npm run test:watch

API Specification

We use Open API 3.0 to define the API structure of the application.

You can see our full API documentation by navigating to http://localhost:8000/api/v1/docs.

Schema

Expand to view a diagram illustrating the proposed schema for Chapter.

a diagram illustrating the proposed schema for Chapter

created with DBeaver.io

User Stories

MVP

The MVP user stories are shown in the MVP Project kanban / cards and as issues marked with "MVP".

Post-MVP

We are maintaining a list of post-MVP conversations and user stories using the "Roadmap" tag.

Quincy Larson is the project lead. FreeCodeCamp will start "dogfooding" the MVP with several of its local study groups.

Here's an out-dated example of an app with similar functionality: The freeCodeCamp Study Group Directory.

Contributing

License

Copyright © 2020 freeCodeCamp.org

The computer software is licensed under the BSD-3-Clause license.

Contributors

Thanks goes to these wonderful people (emoji key):


Quincy Larson

💻 📖 🤔

Tim Chen

💻 🚧 🔧

nikjohn

💻 📖 🔧

Matteo Giaccone

📦 💻 📖

Ian Littman

💻

Abrar Rauf

📖

Jonathan Chhabra

🚧 💻

Thomas Roest

💻

Scott Brenner

📖 🔧

Jim Ciallella

📖

Joel Rozen

💻

yitzhak-bloy

📖

Rob Bertram

💻

Fran Zekan

💻 🔧

Jesuloba Egunjobi

📦

Lakshmipriya

📖

Ronald van der Bergh

📖

Rodolfo Mendes

📖

Chris Gonzalez

📖

Gonzalo Gras Cantou

📖

Vivek Agrawal

📖 🔧 🎨

Kognise

💻

Wendel Nascimento

💻

Praveen Durairaju

💻

Shangeeth Sivan

📖

Conor Broderick

💻

PrestonElliott

📖 💻

VimalRaj Selvam

💻

Franco Correa

💻

Manoel

📖

Dillon Mulroy

📖

Mirza Chilman

📖

Cecilia

🤔

Sean

🎨

Madalena

🎨

Ariel Barboza

📖

Jonathan Seubert

🎨 📖

Juli Odomo

🎨

Vaibhav Singh

💻

Subroto

💻

Edward Weymouth

📖

Aryan J

💻

Ashraf Nazar

📖

Vamsi Settypalli

📖

sushmeet sunger

📖

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

You can’t perform that action at this time.
X Tutup