A full-stack restaurant application which users can search, geolocate, review and curate their favorite restaurants from around the world.
The application has three main models - Users, Stores, and Review - all of which are relational. It is designed to hit upon many of today's application needs such as user authentication, database storage, Ajax REST API, file upload and image resizing.
Dang that's delicious runs on a MongoDB setup, which requires a local or remote database connection. To set one up, follow the steps below:
To load sample data, run the following command in your terminal:
npm run sample
If you have previously loaded in this data, you can wipe your database 100% clean with:
npm run blowitallaway
That will populate 16 stores with 3 authors and 41 reviews. The logins for the authors are as follows:
Name | Email (login) | Password |
---|---|---|
Wes Bos | [email protected] | wes |
Debbie Downer | [email protected] | debbie |
Beau | [email protected] | beau |
NODE_ENV=development
DATABASE=mongodb+srv://
MAIL_USER=
MAIL_PASS=
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
PORT=7777
MAP_KEY=
SECRET=
KEY=