Skip to content

Repository files navigation

Autolist- Classified Ads Headless Strapi Backend

Frontend Repository Here

One Click Deploy

Deploy on Railway

✨ Features

  • Strapi
  • Postgres

πŸ’β€β™€οΈ How to use

  • Click the Railway button πŸ‘†
  • Add the environment variables
    • If you choose not to add the Cloudinary related environment variables, your media will not be persisted between deploys.

πŸ’» Developing locally

When developing locally this Strapi template will connect to the Postgres server from its public TCP Proxy

  • Clone the repository locally
  • Install the dependencies with yarn install or npm install
  • Install the Railway CLI, instructions for that can be found here
    • If this is your first time using the CLI make sure to login with railway login
  • Within the local repository run railway link to link the local repository to the Strapi service on Railway
  • Start Strapi for development with railway run yarn run develop or railway run npm run develop
    • This command run Strapi in development mode with the service variables available locally
  • Open your browser to http://127.0.0.1:1337/admin

πŸ“ Notes

  • After your app is deployed, visit the /admin endpoint to create your admin user.
  • Railway's filesystem is ephemeral which is why any changes to the filesystem are not persisted between deploys. This is why, this template uses Cloudinary for media storage.

πŸ’β€β™€οΈ Frontend Setup (Next.js)

  1. Clone the frontend repository:

    git clone https://github.com/js-template/autolist
    cd nextjs-frontend
  2. Install the dependencies:

    pnpm install
    # or
    yarn install
  3. Start the Next.js development server:

    pnpm dev
    # or
    yarn dev

About

Autolist- Classified Ads Headless Strapi Backend

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages