Name: freecodecamp
Owner: Cyber Wizard Institute
Description: FreeCodeCamp.com's open-source MEAN web application
Created: 2015-07-21 06:28:03.0
Updated: 2016-01-06 23:12:43.0
Pushed: 2015-07-21 05:56:29.0
Homepage: null
Size: 15164
Language: HTML
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
We're currently very close to moving from Express to Loopback. As such, please keep in mind that the instructions here for setting up and running the project do not directly translate to the staging branch. Additionally, the file structure is quite a bit different. As always, the staging branch is the appropriate place to branch off of to fix/add something!
Free Code Camp is an open-source community of busy people who learn to code, then build projects for nonprofits.
Our campers (students) start by working through our free, self-paced, browser-based curriculum. Next, they build several practice projects. Finally, we pair two campers together with a stakeholder from a nonprofit organization, and help them build the solution the nonprofit has requested.
We help our campers build job-worthy portfolios of real apps used by real people, while helping nonprofits.
80% of our campers are over 25, and nearly a fifth of our campers are women.
This code is running live at FreeCodeCamp.com. We also have Gitter, a blog, and even a Twitch.tv channel.
We welcome pull requests from Free Code Camp campers (our students) and seasoned JavaScript developers alike! Follow these steps to contribute:
user-xxx
where user is your username and xxx is the issue number you are addressing.staging
branch. We'll do a quick code review and give you feedback, then iterate from there.The easiest way to get started is to clone the repository:
t the latest snapshot
clone --depth=1 https://github.com/freecodecamp/freecodecamp.git freecodecamp
reecodecamp
stall NPM dependencies
install
stall Bower dependencies
r install
eate a .env file and populate it with the necessary API keys and secrets:
h .env
Edit your .env file with the following API keys accordingly (if you only use email login, only the MONGOHQ_URL, SESSION_SECRET, MANDRILL_USER and MANDRILL_PASSWORD fields are necessary. Keep in mind if you want to use more services you'll have to get your own API keys for those services.
OHQ_URL='mongodb://localhost:27017/freecodecamp'
BOOK_ID=stuff
BOOK_SECRET=stuff
UB_ID=stuff
UB_SECRET=stuff
LE_ID=stuff
LE_SECRET=stuff
EDIN_ID=stuff
EDIN_SECRET=stuff
RILL_PASSWORD=stuff
RILL_USER=stuff
LO_KEY=stuff
LO_SECRET=stuff
TER_KEY=stuff
TER_SECRET=stuff
TER_TOKEN=stuff
TER_TOKEN_SECRET=stuff
GER_KEY=stuff
K_WEBHOOK=stuff
ION_SECRET=secretstuff
IE_SECRET='this is a secret'
=stuff
G=true
ash
art the mongo server
od
ed your database with the challenges
seed/
art the application
| Name | Description | | ———————————- |:———————————————————–:| | config/passport.js | Passport Local and OAuth strategies, plus login middleware. | | config/secrets.js | Your API keys, tokens, passwords and database URL. | | controllers/contact.js | Controller for contact form. | | controllers/home.js | Controller for home page (index). | | controllers/user.js | Controller for user account management. | | controllers/challenges.js | Controller for rendering the challenges. | | models/user.json | Mongoose schema and model for User. | | models/challenge.json | Mongoose schema and model for Challenge. | | public/ | Static assets (fonts, css, js, img). | | public/js/application.js | Specify client-side JavaScript dependencies. | | public/js/main_0.0.2.js | Place your client-side JavaScript here. | | public/css/main.less | Main stylesheet for the app. | | views/account/ | Templates for login, password reset, signup, profile. | | views/partials/flash.jade | Error, info and success flash notifications. | | views/partials/navigation.jade | Navbar partial template. | | views/partials/footer.jade | Footer partial template. | | views/layout.jade | Base template. | | views/home.jade | Home page template. | | server.js | Main application file. |
| Package | Description | | ——————————- |:——————————————————————–:| | async | Utility library that provides asynchronous control flow. | | bcrypt-nodejs | Library for hashing and salting user passwords. | | cheerio | Scrape web pages using jQuery-style syntax. | | clockwork | Clockwork SMS API library. | | connect-assets | Compiles LESS stylesheets, concatenates & minifies JavaScript. | | connect-mongo | MongoDB session store for Express. | | csso | Dependency for connect-assets library to minify CSS. | | express | Node.js web framework. | | body-parser | Express 4.0 middleware. | | cookie-parser | Express 4.0 middleware. | | express-session | Express 4.0 middleware. | | morgan | Express 4.0 middleware. | | compression | Express 4.0 middleware. | | errorhandler | Express 4.0 middleware. | | method-override | Express 4.0 middleware. | | express-flash | Provides flash messages for Express. | | express-validator | Easy form validation for Express. | | fbgraph | Facebook Graph API library. | | github-api | GitHub API library. | | jade | Template engine for Express. | | less | LESS compiler. Used implicitly by connect-assets. | | helmet | Restricts Cross site requests. You can modify its settings in server.js | | mongoose | MongoDB ODM. | | nodemailer | Node.js library for sending emails. | | passport | Simple and elegant authentication library for node.js | | passport-facebook | Sign-in with Facebook plugin. | | passport-github | Sign-in with GitHub plugin. | | passport-google-oauth | Sign-in with Google plugin. | | passport-twitter | Sign-in with Twitter plugin. | | passport-local | Sign-in with Username and Password plugin. | | passport-linkedin-oauth2 | Sign-in with LinkedIn plugin. | | passport-oauth | Allows you to set up your own OAuth 1.0a and OAuth 2.0 strategies. | | request | Simplified HTTP request library. | | lodash | Handy JavaScript utilities library. | | uglify-js | Dependency for connect-assets library to minify JS. | | mocha | Test framework. | | chai | BDD/TDD assertion library. | | supertest | HTTP assertion library. | | multiline | Multi-line strings for the generator. |
The BSD-3-Clause
Copyright (c) 2015, Free Code Camp All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of Free Code Camp nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY FREE CODE CAMP AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.