ROBUST bnb is a clone site inspired by airbnb
- You will need to have Node.js installed
[How to Install Node.js](https://nodejs.org/en/learn/getting-started/how-to-install-nodejs)
- Clone this repo.
git clone https://github.com/AnthonyFebles/ROBUSTbnb.git
- Install all dependencies from the root folder
npm install
- CD into the backend
cd backend
- Create a copy of the environment example
cp .env.example .env
- From here you'll want to head into the new .env file that was created and change two things
where it says, 'JWT_SECRET' enter a strong secret code after the '='
where it says, 'SCHEMA' name the schema however you'd like after the '='
- Build the backend database
npm run rebuild-db
You can use this same command to reset the database whenever you would like from the backend directory
- Now that the database is built, you can start up the backend!
npm start
if you ever want to stop running the backend, you can press ctrl + c in the terminal
- Open a new terminal in the root directory, do not close the terminal hosting the backend
- CD into the frontend
CD frontend
- Finally, start the frontend and go to 'http://localhost:3000/' in your browser
npm start
- You can log in as a demo user, or sign up with a new account using the profile button on the top-right.