Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

FreeCodeCamp.com's open-source MEAN web application

License

NotificationsYou must be signed in to change notification settings

Yuni-Me/freecodecamp

 
 

Repository files navigation

Throughput Graph

Join the chat at https://gitter.im/freecodecamp/freecodecamp

Welcome to Free Code Camp's open source codebase!

#NoteWe'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 atFreeCodeCamp.com. We also haveGitter, ablog, and even aTwitch.tv channel.

Join our community!

Contributing

We welcome pull requests from Free Code Camp campers (our students) and seasoned JavaScript developers alike! Follow these steps to contribute:

  1. Check ourpublic Waffle Board.
  2. Pick an issue that nobody has claimed and start working on it. If your issue isn't on the board, open an issue. If you think you can fix it yourself, start working on it. Feel free to ask for help in ourGitter
  3. Fork the project (Need help with forking a project?). You'll do all of your work on your forked copy.
  4. Create a branch specific to the issue or feature you are working on. Push your work to that branch. (Need help with branching?)
  5. Name the branch something likeuser-xxx where user is your username and xxx is the issue number you are addressing.
  6. You should haveESLint running in your editor, and it will highlight anything doesn't conform toAirBnB's JavaScript Style Guide. Please do not ignore any linting errors, as they are meant tohelp you. Make sure none of your JavaScript is longer than 80 characters per line.
  7. Once your code is ready, submit a pull request from your branch to Free Code Camp'sstaging branch. We'll do a quick code review and give you feedback, then iterate from there.
  8. Once we accept one of your pull requests, one of the project owners (currently @quincylarson, @terakilobyte, and @berkeleytrue) will add you to our camper contributor group.

Prerequisites

Getting Started

The easiest way to get started is to clone the repository:

# Get the latest snapshotgit clone --depth=1 https://github.com/freecodecamp/freecodecamp.git freecodecampcd freecodecamp# Install NPM dependenciesnpm install# Install Bower dependenciesbower install# Create a .env file and populate it with the necessary API keys and secrets:touch .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.

MONGOHQ_URL='mongodb://localhost:27017/freecodecamp'FACEBOOK_ID=stuffFACEBOOK_SECRET=stuffGITHUB_ID=stuffGITHUB_SECRET=stuffGOOGLE_ID=stuffGOOGLE_SECRET=stuffLINKEDIN_ID=stuffLINKEDIN_SECRET=stuffMANDRILL_PASSWORD=stuffMANDRILL_USER=stuffTRELLO_KEY=stuffTRELLO_SECRET=stuffTWITTER_KEY=stuffTWITTER_SECRET=stuffTWITTER_TOKEN=stuffTWITTER_TOKEN_SECRET=stuffBLOGGER_KEY=stuffSLACK_WEBHOOK=stuffSESSION_SECRET=secretstuffCOOKIE_SECRET='this is a secret'PEER=stuffDEBUG=true
# Start the mongo servermongod# Seed your database with the challengesnode seed/# start the applicationgulp

Project Structure

NameDescription
config/passport.jsPassport Local and OAuth strategies, plus login middleware.
config/secrets.jsYour API keys, tokens, passwords and database URL.
controllers/contact.jsController for contact form.
controllers/home.jsController for home page (index).
controllers/user.jsController for user account management.
controllers/challenges.jsController for rendering the challenges.
models/user.jsonMongoose schema and model for User.
models/challenge.jsonMongoose schema and model for Challenge.
public/Static assets (fonts, css, js, img).
public/js/application.jsSpecify client-side JavaScript dependencies.
public/js/main_0.0.2.jsPlace your client-side JavaScript here.
public/css/main.lessMain stylesheet for the app.
views/account/Templates forlogin, password reset, signup, profile.
views/partials/flash.jadeError, info and success flash notifications.
views/partials/navigation.jadeNavbar partial template.
views/partials/footer.jadeFooter partial template.
views/layout.jadeBase template.
views/home.jadeHome page template.
server.jsMain application file.

List of Packages

PackageDescription
asyncUtility library that provides asynchronous control flow.
bcrypt-nodejsLibrary for hashing and salting user passwords.
cheerioScrape web pages using jQuery-style syntax.
clockworkClockwork SMS API library.
connect-assetsCompiles LESS stylesheets, concatenates & minifies JavaScript.
connect-mongoMongoDB session store for Express.
cssoDependency for connect-assets library to minify CSS.
expressNode.js web framework.
body-parserExpress 4.0 middleware.
cookie-parserExpress 4.0 middleware.
express-sessionExpress 4.0 middleware.
morganExpress 4.0 middleware.
compressionExpress 4.0 middleware.
errorhandlerExpress 4.0 middleware.
method-overrideExpress 4.0 middleware.
express-flashProvides flash messages for Express.
express-validatorEasy form validation for Express.
fbgraphFacebook Graph API library.
github-apiGitHub API library.
jadeTemplate engine for Express.
lessLESS compiler. Used implicitly by connect-assets.
helmetRestricts Cross site requests. You can modify its settings in server.js
mongooseMongoDB ODM.
nodemailerNode.js library for sending emails.
passportSimple and elegant authentication library for node.js
passport-facebookSign-in with Facebook plugin.
passport-githubSign-in with GitHub plugin.
passport-google-oauthSign-in with Google plugin.
passport-twitterSign-in with Twitter plugin.
passport-localSign-in with Username and Password plugin.
passport-linkedin-oauth2Sign-in with LinkedIn plugin.
passport-oauthAllows you to set up your own OAuth 1.0a and OAuth 2.0 strategies.
requestSimplified HTTP request library.
lodashHandy JavaScript utilities library.
uglify-jsDependency for connect-assets library to minify JS.
mochaTest framework.
chaiBDD/TDD assertion library.
supertestHTTP assertion library.
multilineMulti-line strings for the generator.

License

The BSD-3-Clause

Copyright (c) 2015, Free Code CampAll rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. 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.

  3. 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.

About

FreeCodeCamp.com's open-source MEAN web application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML59.1%
  • JavaScript33.0%
  • CSS7.9%

[8]ページ先頭

©2009-2025 Movatter.jp