Code Monkey home page Code Monkey logo

food-bank-app's Introduction

This repository is for the Food Bank application designed by Open Source for Good Contributors at Free Code Camp.

You can test it out by deploying to Heroku:

Deploy

The button creates an admin account with username "admin" and password "password".

To use Google Maps with the driver and route assignment, add a Config Setting of GOOGLE_MAPS_API_KEY with your API key.

New deployments are provisioned with a Sendgrid addon to facilitate sending email notifications. To enable email, click on the "Resources" tab in the Heroku web page for your app. Then click on "Sendgrid" under addons and your Sendgrid account page will open. Select "API Keys" from the "Settings" dropdown menu and click "Create API key". Add a Config Setting in Heroku of SENDGRID_API_KEY with the API key you create. You will also need to add a MAILER_FROM setting with the email account you wish to send the reminders from.

Local Installation

You'll need to have the latest verison of node.js installed. Either use your OS's package manager or follow the installation instructions on the official website.

Next, install git if it is not already installed. To clone this repository to your local machine, open a command line interface and navigate to your projects directory. Then type

$ git clone https://github.com/FreeCodeCamp/food-bank-app.git

Move to the food-bank-app subdirectory and type npm install. This installs all of Foodbank Template's dependencies.

Foodbank Template uses the Grunt taskrunner to automate build processes. Install it globally with npm install -g grunt-cli

Now use a text editor to create a file named .env. Foodbank Template loads this file at startup to read your configuration settings. Add the following line

NODE_ENV=development

to indicate that you are running the app in development mode.

This app uses MongoDB as its database engine. Follow the instructions to install it locally. By default, it attaches to mongodb://localhost:27017/fb-dev. If you want to use a differently named database, or connect to a remote MongoDB instance, add the address to the MONGODB_URI variable in your .env file.

Once MongoDB is set up, you should create an admin account. Edit the admin-config.json file to create a custom user, then run

$ grunt create-admin-user

to add him to your database.

Finally, type npm start to start the application. If all goes well, it will be available at http://localhost:3000.

Contributing

We welcome pull requests from seasoned Javascript developers. Please read our guide first, then check out our open issues.

food-bank-app's People

Contributors

maf27 avatar bminixhofer avatar

Stargazers

Branko Vukmirovic avatar

Watchers

Branko Vukmirovic avatar James Cloos avatar  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.