- Express.js
- Next.js
- TailwindCSS
We will use a PascalCase. Names in pascal case start with a capital letter. In case of the names with multiple words, all words will start with capital letters.
Here are some examples of pascal case: FirstName
and LastName
.
apps/backend
- folder with api filesapps/frontend
- folder with store filessrc/packages
- folder with the all global settings
- Clone repository
- Run
yarn
to install project dependencies. - Run
yarn workspace backend install
to install backend dependencies. - Make copy of
apps/backend/.env.example
file with nameapps/backend/.env
(e.g. by executing commandcp apps/backend/.env.example apps/backend/.env
) - Start your postgresql database.
- Go to
apps/backend
and run migrations by executing commandnpx @medusajs/medusa-cli migrations run
- Back to root directory and run seed
yarn workspace backend seed
to set default data. - Run
yarn workspace frontend install
to install frontend dependencies. - Go to
apps/frontend
and make copy ofapps/frontend/.env.example
file with nameapps/frontend/.env
(e.g. by executing commandcp apps/frontend/.env.example apps/frontend/.env
) - Open .env file and edit api url (prefix
API_BASE_URL
) - Run
yarn dev
to run dev server oryarn build
for production purposes.
To open admin panel u need to open http://localhost:8000/app/login
.
- Login:
[email protected]
- Password:
supersecret
- Run
yarn dev
to run dev server - Go to frontend workspace by executing command
cd apps/frontend
. - Run
yarn cy:test
to use tests.