# Clone the repo
git clone https://github.com/AstroPlant/community-platform
cd community-platform
# Start up both strapi and next
docker-compose up -d
Once it's finished you should be asked to create a strapi admin account on localhost:1337. Please create at least an article, a user and add the correct permissions by following the steps here. Then you should be able to access the front end on your localhost:3000.
# Activating PSQL
psql postgres
# Create the strapi db
CREATE DATABASE strapi;
# Create a user
CREATE ROLE strapi WITH LOGIN PASSWORD 'strapi' CREATEDB;
# Grant all priviledge to the strapi user
GRANT ALL PRIVILEGES ON DATABASE strapi TO strapi;
# Clone the repo
git clone https://github.com/AstroPlant/community-platform
cd community-platform/api
# install strapi dependencies
npm install
# Start up strapi
npm run develop