https://github.com/weiwei2694/sharing-apps
Create Sharing Apps | Using Node, Express, Passport, Prisma, etc...
https://github.com/weiwei2694/sharing-apps
express jwt mysql node passport prisma
Last synced: about 1 year ago
JSON representation
Create Sharing Apps | Using Node, Express, Passport, Prisma, etc...
- Host: GitHub
- URL: https://github.com/weiwei2694/sharing-apps
- Owner: weiwei2694
- License: mit
- Created: 2023-10-03T02:26:07.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-06T08:16:58.000Z (over 2 years ago)
- Last Synced: 2025-03-24T02:12:18.172Z (over 1 year ago)
- Topics: express, jwt, mysql, node, passport, prisma
- Language: JavaScript
- Homepage:
- Size: 847 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sharing Apps
## What Is Sharing Apps?
A website that you can visit, to share your experiences or look for things you need.
## Preview

## Key Features
- Filter posts
- Roles system
- Profile user
- Create new post
- Delete post
- Category dashboard
- Create new category
- Delete category
- Authentication using Passport
- ORM using prisma
- MySQL database using Railways
- View engine using EJS
## Cloning the repository
```bash
git clone https://github.com/weiwei2694/sharing-apps.git
npm install
cd sharing-apps
```
## Setup .env file
```bash
# Port number
PORT=5173
# URL of Database
DB_URL=""
# SESSION SECRET
SESSION_SECRET=secretkey
# JWT
# JWT secret key
JWT_SECRET=thisisasamplesecret
# Number of minutes after which an access token expires
JWT_ACCESS_EXPIRATION_MINUTES=30
# Number of days after which a refresh token expires
JWT_REFRESH_EXPIRATION_DAYS=30
```
## Setup Prisma
```bash
npx prisma generate
npx prisma db push
```
## Start the app
```bash
npm run dev
```
## Available commands
Running commands with npm `npm run [command]`
| Command | Description |
| -------------- | ---------------------------------------------------------------- |
| `start` | Run the application using PM2 and enable daemon mode. |
| `dev` | Run the application in development mode using Nodemon. |
| `lint` | Run ESLint to check the code linting in your project. |
| `lint:fix` | Run ESLint to check and fix code linting in your project. |
| `prettier` | Run Prettier to check code formatting in your project. |
| `prettier:fix` | Run Prettier to check and fix code formatting in your project. |
| `devcss` | Run Tailwind CSS to generate optimized CSS files from input.css. |