Giter Site home page Giter Site logo

h0m3brew / foodfy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from laurabeatris/foodfy

0.0 0.0 0.0 7.11 MB

๐Ÿ• mvc application to explore & manage amazing recipes and chefs - made with express, nunjucks, scss and postgres

License: MIT License

HTML 28.76% JavaScript 52.88% CSS 14.06% PLpgSQL 1.11% Dockerfile 0.09% Shell 3.10%

foodfy's Introduction

Foodfy

Author Languages Stars Forks Contributors

Take your culinary skills to the next level. Cook, Explore & Manage Recipes.



๐Ÿ“Œ Table of Contents

๐Ÿš€ Features

  • ๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿณ Explore recipes and find amazing chefs.
  • ๐Ÿ• Create an account to manage recipes, chefs and users.
  • ๐Ÿ“จ As an administrator of the platform, you're able to invite other users.
  • ๐ŸŒ Multi language support - English and Portuguese.
  • ๐ŸŽจ A cool dark mode theme toggle.

Obs: The admin platform isn't all translated yet.

๐Ÿ‘ท Installation

You need to install Node.js and Yarn first, then in order to clone the project via HTTPS, run this command:

git clone https://github.com/LauraBeatris/foodfy.git

SSH URLs provide access to a Git repository via SSH, a secure protocol. If you have a SSH key registered in your Github account, clone the project using this command:

git clone [email protected]:LauraBeatris/foodfy.git

Install dependencies

yarn install

Create your enviroment variables based on the examples of .env.example

cp .env.example .env

After copying the examples, make sure to fill the variables with new values.

๐Ÿƒ Getting Started

Running with docker-compose

In order to prepare the database and also run the application, set your environment variables and then execute docker-compose

docker-compose up

With this command, the port seted in your environment PORT variable will be available to access the application.

Manually setup

You may prefer to manually configure the database and the application.

Install Postgres to create a database or if you have Docker in your machine, fill the environment values related to database configurations and the run the following commands in order to create a postgres container.

docker-compose up postgres

Execute the follow command to create tables, relationships and procedures:

yarn db:create

To start, run the seeds provided in Seeds in order to populate the database with an initial data.

yarn run:seeds

Run the following command in order to start the application in a development environment:

yarn dev

๐Ÿ“ฎ Faq

Question: What are the tecnologies used in this project?

Answer: The tecnologies used in this project are NodeJS + Express Framework to handle the server, Nunjucks to develop amazing views & SCSS to handle the styles architecture and a better maintenance than normal CSS.

Question: How the multi language support is handled by the server?

Answer: This application handle multi language support with the help of a library called i18n-node. It has a middleware that gather language settings of visitors and then persist translations from JSON files related with a specific locale.

The locale is storaged as a cookie named foodfy:locale and that can be changed by passing a query string with the value ?lang=pt

Question: Are all kind of users able to create and update chefs or recipes?

Answer: The application has two kind of users: Visitors and Administrators. As a administrator, you're able to create, update and view all the data related to recipes, chefs and also other users. Visitors can also access the admin platform but they don't have access to the views responsable to create and update data.

๐Ÿ› Issues

Feel free to file a new issue with a respective title and description on the the Foodfy repository. If you already found a solution to your problem, i would love to review your pull request! Have a look at our contribution guidelines to find out about the coding standards.

๐ŸŽ‰ Contributing

Check out the contributing page to see the best places to file issues, start discussions and begin contributing.

๐Ÿ“• License

Released in 2020. This project is under the MIT license.

Made with love by Laura Beatris ๐Ÿ’œ๐Ÿš€

foodfy's People

Contributors

laurabeatris avatar raphaeloliveiramoura avatar fredsonchaves07 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.