Planet Farms is a system built in PERN Stack. This stack consists of PostgreSQL, Express, React and Node.js
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.
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.
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 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.
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
.