This is a Boilerplate made with Nuxt.js 3 and Strapi 4 wrapped in a Docker Container.
git clone [email protected]:tarikkavaz/N3S4D.git
cd N3S4D #Run all commands from here
cp backend/.env.example backend/.env
cp frontend/utils/api.js.example frontend/utils/api.js
yarn install
yarn setup
yarn dev #open http://localhost:3000/ and http://localhost:1337/
docker-compose up #open http://localhost/ and http://localhost/admin/
- Open Strapi Admin and create an account
- Under Users & Permissions open the Roles Page
- Select Public and give your Collection Type
find
andfindOne
permitions. - Add some content in Content Manager. Don't forget to Publish!
- Repeat step 4 with About and Homepage
Enter your Domain in frontend/utils/api.js
at line 5
import axios from 'axios';
export const baseUrl = process.env.NODE_ENV === 'development'
? 'http://localhost:1337/api'
: 'http://xx.xxx.xx.x';
Run
yarn build
docker-compose up --build