Skip to content

Repository files navigation

📚 Bookstore Backend – Strapi v5

This is the backend for a bookstore website, built with Strapi v5 and written in TypeScript.
It uses SQLite for development and includes Stripe integration for payment processing.


🚀 Getting Started

Install dependencies:

yarn install
# or
npm install

Start the development server:

yarn develop
# or
npm run develop

The admin panel will be available at: backend-production-dd5c.up.railway.app


🛠️ Scripts

Script Description
npm develop Start the app in development mode
npm build Build the admin panel
npm start Start the app in production mode
npm deploy Deploy the app (Strapi Cloud plugin)

⚙️ Environment Configuration

Create a .env file in the root directory based on the example below:

# Server
HOST=0.0.0.0
PORT=1337

# Secrets
APP_KEYS=your_app_keys
API_TOKEN_SALT=your_api_token_salt
ADMIN_JWT_SECRET=your_admin_jwt
TRANSFER_TOKEN_SALT=your_transfer_token_salt
JWT_SECRET=your_jwt_secret

# Database (SQLite by default)
DATABASE_CLIENT=sqlite
DATABASE_FILENAME=.tmp/data.db

# Stripe
NEXT_PUBLIC_STRIPE_PUBLIC_KEY=your_stripe_public_key
STRIPE_SECRET_KEY=your_stripe_secret_key
STRIPE_API_KEY=your_stripe_secret_key

You can copy .env.example and rename it to .env.


🧩 Plugins Used

  • @strapi/plugin-users-permissions
  • @strapi/plugin-cloud
  • stripe

📦 Deployment

This project is deployed on Railway. You can also deploy to other platforms following the official Strapi deployment guide.


📚 Learn More


🧑‍💻 Author

Made with ❤️ by Aida (https://github.com/11thmoonlight)

About

Headless backend for a bookstore built with Strapi and TypeScript

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages