Clone of Hipcamp.
| MVP Features List | Database Schema | API Documentation | Frontend Routes
- Javascript
- React
- Redux
- Node
- Express
- Postgres
- VS Code
- CSS
- HTML
- Clone this repo.
git clone https://github.com/annvilla1998/campLife.git
- Install dependencies from the root directory.
- npm install
- Create a POSTGRESQL user with CREATEDB and PASSWORD in PSQL
- CREATE USER WITH CREATEDB PASSWORD <'password'>
- Create a .env file in the backend directory based on the .env.example.
- Enter your username and password information into the .env file and replace fillers with database name, desired JWT_SECRET, and desired PORT.
- Add a proxy to your package.json file within frontend directory with desired port from .env file:
"proxy": "https://localhost:5000"
- Create database, migrate, and seed by running the following commands:
npx dotenv sequelize db:create
npx dotenv sequelize db:migrate
npx dotenv sequelize db:seed:all
- Run the application by running "npm start" in both backend and frontend directories.
Logged in users can:
- Create/Read/Update/Delete Campsites
- Create/Read/Update/Delete Reviews
- Create/Read/Delete Trips