Skip to content

SocialGouv/ozensemble-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

  1. Clone the repo locally:
git clone https://github.com/SocialGouv/ozensemble-site.git
  1. Set up backend dependencies:
cd ozensemble-site
cd api
yarn
  1. Set up environment variables:
cp .env.example .env
  1. Start your project by running the following command:
  yarn build
  yarn develop

Create your first admin user.

admin-user

Seeding the Data

At the root of our project, we have our seed-data.tar file. We will use it to update the schema for our Strapi app.

  1. Import data into your strapi's database:
yarn strapi import -f ../seed-data.tar.gz

Answer y to The import will delete all assets and data in your database. Are you sure you want to proceed? (y/N)

  1. After a successful import, rerun your Strapi server.
yarn develop

In your browser, log in to your admin panel. You should see the newly imported content and collection types.

after-import

Frontend Setup

  1. Open up a new terminal session and navigate into your next-app folder. Set up frontend dependencies:
cd next-app
yarn
  1. Create .env file:
touch .env
  1. Paste in the following.
NEXT_PUBLIC_STRAPI_API_URL=http://127.0.0.1:1337
  1. Start your frontend
yarn dev

Additiona Resources