Git Product home page Git Product logo

planetfarms's Introduction

Planet Farms

Planet Farms is a system built in PERN Stack. This stack consists of PostgreSQL, Express, React and Node.js

Getting Started

After you clone the repository. You can create or edit .env file and add REACT_APP_API_BASE_URL = http://127.0.0.1:5000 as environment variable.

npm install

You can install dependencies by npm install in your Frontend and after that you can go to Backend by cd api and npm install to install dependencies in your Backend.

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

docker-compose up

Docker is a software platform for building applications based on containers โ€” small and lightweight execution environments that make shared use of the operating system kernel but otherwise run in isolation from one another.

To run docker first you need to install docker on your computer after than enter docker-compose up which will pull the latest images.

npx sequelize-cli db:migrate

Sequelize is a promise-based Node.js ORM for Postgres, MySQL, MariaDB, SQLite and Microsoft SQL Server. It features solid transaction support, relations, eager and lazy loading, read replication and more.

Now to actually create that table in database you need to run npx sequelize-cli db:migrate command. This command will create table and to seed your database you can run npx sequelize-cli db:seed:all.

planetfarms's People

Contributors

dixitsigdel8 avatar dogi avatar jlkwong avatar lmmrssa avatar robingiri avatar sujallama 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.