This is a Strapi application for the CMS (Content Management System) of the Aditya-L1 Science Support Cell (website).
- LINUX or MacOS operating system with Git installed
- LTS version of Node.js with yarn installed. For detailed instructions on how to do so, see pre-requisites of al1ssc-client that are exact same.
- MySQL v5.7 (follow installation guide in MySQL docs)
-
Clone the repository to your machine:
git clone https://github.com/aries-res/al1ssc-cms.git cd al1ssc-cms
-
Install all dependencies of the project:
yarn
-
Launch the MySQL command-line client in your terminal and create a new empty database that will be used with this project. Exit the MySQL client.
-
Setup enviornment variables necessary to run the project:
-
Copy the contents of
.env.example
in a.env
file at the root of project. -
In the
.env
file, set the value ofADMIN_JWT_SECRET
to a random string. It's recommended to generate it by running following command in your terminal:node -e "console.log(require('crypto').randomBytes(24).toString('base64'));"
-
Set the
DATABASE_NAME
to the name of database you created earlier andDATABASE_USERNAME
,DATABASE_PASSWORD
to username, password you used to create database respectively. -
(Optional) Uncomment any commented variables and set a suitable value if you want to override the default value used for it.
-
-
Run the project in development mode (with auto-reload enabled):
yarn develop
Note: When running 1st time, it will take some time to build the admin panel. And after admin panel is launched, you'll be asked to create 1st admin user. Note the email and pasword you decide to use for future logins.
-
Go to the "Content-Types Builder" in sidebar, and update the content types (collection types, single types, or components). Refer to this doc to understand how to do so.
If you need to add content, refer to user guide but remember to enter minimal content only to test the functionality because it won't go in production database.