An open API service indexing awesome lists of open source software.

https://github.com/dlsiem/dlsiem-gear-second-template

Reactjs template with postgres and express
https://github.com/dlsiem/dlsiem-gear-second-template

express postgresql reactjs reactrouterdom redux tailwindcss typescript vitets

Last synced: 2 months ago
JSON representation

Reactjs template with postgres and express

Awesome Lists containing this project

README

        

# React Express Template

## Technologies

### Front-end

1. Vite React Typescript
2. Redux - For state management
3. React-Router-Dom - Routing
4. Tailwindcss - For styling

### Back-end

1. Express (Nodejs)
2. Postgres - Database
3. Typescript
4. JWT - Authentication

## Run in your local environment

### Download

```
npx dlsiem-gear-second
cd my-app
```

### Run the front-end

```
cd client
npm install
npm run dev
```

### Make sure to create .env credentials before runnning the back-end

```
PORT = 5000
DB_USERNAME = "your_db_username"
DB_PASSWORD = "your_db_password"
DB_NAME = "your_db_name"
DB_HOST = "localhost"
DB_PORT = 5432

JWT_SECRET = "your_secret"

```

### Run the back-end

```
cd server
npm install
npm run dev
```