- javascript
- next.js
- react
- typescript
- sass
- postgres
tba
- Clone the repository
git clone https://github.com/julessre/nextjs-ecommerce-store.git
cd next-ecommerce-store
- Install dependencies using
pnpm install
- Setup postgres database
Create a file called .env in the project root directory and paste the following, changing to your own username, password and database:
PGHOST=localhost
PGUSERNAME=<your username>
PGPASSWORD=<your password>
PGDATABASE=<your database>
- Connect to postgres database and run either:
psql -U <user name> <database name> on windows and macOS
sudo -u <user name> psql -U <user name> <database name> on Linux
- Run application
pnpm dev
Open http://localhost:3000 on browser