dev-launchers / strapiv4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dev Launchers Strapi Service

Getting Started

  1. Copy the .env.example file into .env
  2. Run npm install
  3. Run npm run develop
  4. Go to http://localhost:1337/admin to create an account

Running from Docker

Alternatively, you can run it with Docker. There are 2 make targets available to do this.

  • Ensure that Docker is running. This usually means that you need to start up Docker Desktop.
  • cd to the project's root directory
  • make build-docker to build the docker container. This may take a minute.
  • make run-docker to start up the strapiv4 server.

Note: You do not need to do the build and run steps every time you make a change.

Once the docker container is running, the strapi server will auto-reload with your changes without having to restart the container.

Also, if the container goes down for some reason, you do not need to rebuild it again. Run make run-docker and it will start up again.

Contributing

Follow the contributing guide

Release

We are using semantic versioning to tag release. Follow https://github.com/semantic-release/semantic-release#commit-message-format to format the commit messages.

Once you are ready to create a new release, create a PR to merge main branch to release branch.

Update Strapi Version

Go to https://github.com/strapi/strapi/releases to find the latest version, then update all @strapi packages in package.json to this version and run npm install.

Integration Test

To run the integration test envrionment, set NODE_ENV=test in .env file. The login email is integration-test@devlaunchers.org password is wQ46^BEsVbf9VD&D3ddSPCUP. Data is stored in integration-test/data.db.

About

License:GNU General Public License v3.0


Languages

Language:JavaScript 78.9%Language:TypeScript 20.3%Language:Dockerfile 0.5%Language:Makefile 0.3%