npm i
npm run develop
npm run build
npm run start
- You will need to run MySQL server (this is where the data will be stored)
Note: Never connect the live hosted database on AWS to locally hosted database -- else database will crash and you will have to recreate it.
- Details regarding database have to be put into .env -- by default, MySQL will start database @ 127.0.0.1 + 3306.
Note: After creating database, make sure you create a collection called tanthetaadb in it - then, start strapi.
./config/api.js
- change default, max & count parameters for apis./config/middleware.js
- change data limits./config/plugins.js
- change upload limits
- Never give same name to different fields -- if you did it by mistake, then just go to
./src/api
& find your collection name. Under the collection folder, go tocontent-types
directory + edit schema.json. There, just edit the fields with same names -- it will be shown in the console error.
Note: Do not change any other fields except those which are giving errors -- otherwise database will become corrupted.
-
By default, Strapi gives long names to components + relations. Then, while making its corresponding tables, Strapi will club those names together & form newer names.
-
Now, SQL databases (like MySQL, Postgres, etc.) have a table name limit of 128 characters. Thus, you will have to manually rename those long names.
-
To do that, go to
./src/components/shared
& find your corresponding collection -- then, only editcollectionName
-- nothing else. This will resolve the error.
Note: After renaming, add them
changesInCollectionNames.md
file for reference to others.