- Node.js 10 or higher
- NPM 6 or higher
- PostgreSQL 15 or higher
-
Clone the repository.
git clone https://github.com/tghaffari/carCatalogv2 cd carCatalogv2
-
Install all dependencies with NPM.
npm install
-
Make a copy of .env.example named .env and set your database url.
cp .env.example .env
-
Start PostgreSQL
sudo service postgresql start
-
Create a new database with PostgreSQL.
createdb carCatalog
-
Import the database to PostgreSQL
npm run db:import
-
Start the project. Once started you can view the application by opening http://localhost:3000 in your browser.
npm run dev