Skip to content

Commit 02608e7

Browse files
committed
Updated README.
1 parent 49133b6 commit 02608e7

File tree

2 files changed

+50
-37
lines changed

2 files changed

+50
-37
lines changed

.env.example

+3
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ APP_KEYS="toBeModified1,toBeModified2"
44
API_TOKEN_SALT=tobemodified
55
ADMIN_JWT_SECRET=tobemodified
66
TRANSFER_TOKEN_SALT=tobemodified
7+
8+
DATABASE_CLIENT=sqlite
9+
DATABASE_FILENAME=.tmp/data.db
710
JWT_SECRET=tobemodified

README.md

+47-37
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,71 @@
1-
# 🚀 Getting started with Strapi
1+
# Web - CMS
22

3-
Strapi comes with a full featured [Command Line Interface](https://docs.strapi.io/dev-docs/cli) (CLI) which lets you scaffold and manage your project in seconds.
3+
This repository contains the code for the CMS or Content Management System to serve manageable content to be rendered by the [web-frontend](https://github.com/starpep-web/web-frontend).
44

5-
### `develop`
5+
## Requirements
66

7-
Start your Strapi application with autoReload enabled. [Learn more](https://docs.strapi.io/dev-docs/cli#strapi-develop)
7+
In order to develop for this repository you need:
88

9-
```
10-
npm run develop
11-
# or
12-
yarn develop
13-
```
9+
* [Node.js v20.18.0](https://nodejs.org/en) (but any `v20` should work fine)
10+
* [Docker](https://www.docker.com/products/docker-desktop/)
1411

15-
### `start`
12+
## Development
1613

17-
Start your Strapi application with autoReload disabled. [Learn more](https://docs.strapi.io/dev-docs/cli#strapi-start)
14+
First, clone this repository:
1815

16+
```bash
17+
git clone https://github.com/starpep-web/web-cms
1918
```
20-
npm run start
21-
# or
22-
yarn start
19+
20+
Install the dependencies:
21+
22+
```bash
23+
npm install
2324
```
2425

25-
### `build`
26+
Create an `.env` file with the following contents:
2627

27-
Build your admin panel. [Learn more](https://docs.strapi.io/dev-docs/cli#strapi-build)
28+
```text
29+
HOST=0.0.0.0
30+
PORT=1337
31+
APP_KEYS="toBeModified1,toBeModified2"
32+
API_TOKEN_SALT=tobemodified
33+
ADMIN_JWT_SECRET=tobemodified
34+
TRANSFER_TOKEN_SALT=tobemodified
2835
36+
DATABASE_CLIENT=sqlite
37+
DATABASE_FILENAME=.tmp/data.db
38+
JWT_SECRET=tobemodified
2939
```
30-
npm run build
31-
# or
32-
yarn build
40+
41+
Run the `develop` script:
42+
43+
```bash
44+
npm run develop
3345
```
3446

35-
## ⚙️ Deployment
47+
And done, the service should be reachable at `http://localhost:1337/admin`.
3648

37-
Strapi gives you many possible deployment options for your project including [Strapi Cloud](https://cloud.strapi.io). Browse the [deployment section of the documentation](https://docs.strapi.io/dev-docs/deployment) to find the best solution for your use case.
49+
### First Time Setup
3850

39-
```
40-
yarn strapi deploy
41-
```
51+
The first time you start the Strapi development server you will be prompted to create an account. Once you have one set up, you should head over to `Settings` > `API Tokens` and create a new `Read-only` token with no expiration. This token should be used to connect Strapi to [web-frontend](https://github.com/starpep-web/web-frontend). For more information, check out the instructions for that repo to understand where to use the generated API key.
4252

43-
## 📚 Learn more
53+
## Building
4454

45-
- [Resource center](https://strapi.io/resource-center) - Strapi resource center.
46-
- [Strapi documentation](https://docs.strapi.io) - Official Strapi documentation.
47-
- [Strapi tutorials](https://strapi.io/tutorials) - List of tutorials made by the core team and the community.
48-
- [Strapi blog](https://strapi.io/blog) - Official Strapi blog containing articles made by the Strapi team and the community.
49-
- [Changelog](https://strapi.io/changelog) - Find out about the Strapi product updates, new features and general improvements.
55+
If you're developing this on your local machine, consider building the Docker image with the following command:
5056

51-
Feel free to check out the [Strapi GitHub repository](https://github.com/strapi/strapi). Your feedback and contributions are welcome!
57+
```bash
58+
docker build -t local-starpep/web-cms:latest .
59+
```
60+
61+
You can create a new container to try it out with the following command:
5262

53-
## ✨ Community
63+
```bash
64+
docker run -it --rm -p 1337:1337 local-starpep/web-cms:latest
65+
```
5466

55-
- [Discord](https://discord.strapi.io) - Come chat with the Strapi community including the core team.
56-
- [Forum](https://forum.strapi.io/) - Place to discuss, ask questions and find answers, show your Strapi project and get feedback or just talk with other Community members.
57-
- [Awesome Strapi](https://github.com/strapi/awesome-strapi) - A curated list of awesome things related to Strapi.
67+
And done, the service should be reachable at `http://localhost:1337/admin`.
5868

59-
---
69+
## Production
6070

61-
<sub>🤫 Psst! [Strapi is hiring](https://strapi.io/careers).</sub>
71+
Consider checking this [docker-compose.yml](https://github.com/starpep-web/env-production/blob/main/docker-compose.yml) for an example on how to run this image in production.

0 commit comments

Comments
 (0)