Giter Site home page Giter Site logo

grouprecipeapp's Introduction

GroupRecipeApp React-Flask

Recipe App is an React-Flask app that allows users to register and login to view the Vegetarian Recipes and also create their own recipes on Create Recipe so other users can view the recipes created. It has ReactJs for the application with Flask as the server.

Folder Directory

client
flask-server
virtual

Prerequisites

Before getting started, ensure that you have the following dependencies installed on your system:

  • Node.js
  • npm (Node Package Manager)
  • Python 3
  • Flask

Getting Started

To get started with this project, follow the steps below:

  1. Clone this repository to your local machine using the following command:
git clone https://github.com/ruhi102/GroupRecipeApp
  1. Change into the project directory:
cd GroupRecipeApp
  1. Install the necessary dependencies for the React application by running the following command:
cd client
npm install
  1. Install Flask using pip, preferably in flask-server (install modules if terminal asks)
cd flask-server
pip install flask
  1. Install database PostgreSQL since we are using that for our application
sudo apt install postgresql
  1. Create database(optional)
  2. Make changes on database using this command
sudo -u postgres psql
  1. Since we have added the users using our own database create database signup in terminal
CREATE DATABASE signup on different terminal (optional)
  1. Alter the password for the databse as this 'SQLALCHEMY_DATABASE_URI' has a set password for the database on server.py
ALTER USER postgres WITH PASSWORD '456';
  1. Quit the database using this command on a different terminal
\q
  1. Start the Flask server by running the following command:
cd flask-server
python server.py
  1. Open another terminal window and navigate to the project directory. Start the React development server with the following command:
cd client
npm start
  1. The application should now be accessible in your browser at http://localhost:3000.

grouprecipeapp's People

Contributors

ruhi102 avatar

Watchers

 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.