This is a Clone of AirBnb. Access Exotals and start your fun!.
Exotals is the place to go to rent your dream car!
| API Docs | Database Schema | Feature List | Frontend Routes |
- Clone this repo.
git clone https://github.com/Jesus-Elizalde/exotals.git
- Install dependencies in backend directory and frontend directory.
npm install
- Create a POSTGRESSQL user with the CREATEDB and password in PSQL.
CREATE USER <name> WITH CREATEDB PASSWORD <'password'>
- Create a .env file in the backend directory based on the .env.example found withing the respective directory.
- Enter your username and password information into your .env file along with your desired database name, a secured combination of characters for your JWT_TOKEN, and your desired PORT(preferably 8000.) 6.Add the following proxy to your package.json file within your frontend directory, replacing or keeoing the 5000 port to match your PORT configuration found in your .env file.
"proxy":"http://localhost:8000"
7.Create Database, Migrate, and Seed models.npx dotenv sequelize db:create
-
npx dotenv sequelize db:migrate
-
npx dotenv sequelize db:seed:all
8.Start the services in the backend directory.
npm start
9.Start the services in the frontend directory, which should open the project in your default browers, If not, navigate to (http://localhost:8000).npm start
10.You can use the Demo user or create an account to begin using Exotals.
Loggind in users can perform the following actions.
- Add/View/Edit/Delete Cars
- Add/View/Edit/Delete Reviews