Skip to content

gwislab/gwislab-strapi-frontend-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create .env file inside the content directory and the following

HOST=127.0.0.1
PORT=1337
APP_KEYS=
API_TOKEN_SALT=
ADMIN_JWT_SECRET=
TRANSFER_TOKEN_SALT=
# Database, I pushed the database so that someone can have data in it when testing it in development.
DATABASE_CLIENT=sqlite
DATABASE_FILENAME=.tmp/data.db
JWT_SECRET=MyHoFs5lVZTqDw8WEnnMfA==

Create .env file inside the frontend directory and the following

NEXT_PUBLIC_BACKEND_DOMAIN=127.0.0.1
NEXT_PUBLIC_BACKEND_SECURE=http
NEXT_PUBLIC_BACKEND_PORT=1337
NEXT_PUBLIC_BACKEND_URL=http://127.0.0.1:1337/graphql
NEXT_PUBLIC_FRONTEND_URL=http://localhost:3000

Run yarn dev in both the content folder and in the frontend directory

About

Gwislab strapi frontend template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published