Git Product home page Git Product logo

strapi's Introduction

Strapi example

This example deploys self-hosted version of Strapi. Internally it uses a PostgreSQL database to store the data.

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.

strapi's People

Contributors

railway-bot avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.