The project is initialized with CNA (https://nextjs.org/docs/pages/api-reference/create-next-app) on typescript and tailwind template.
- It uses Mongo DB as database and Google Cloud storage for image storage.
- At the moment the auth providers available are Github and Gitlab.
- Not mandatory but is recommended the use of yarn >= 1.22 and node >= 20.10
-
Clone the repo -
clone https://github.com/adrianurs/next-agency.git
-
Install client packages -
npm install
oryarn
-
Install mock-server packages -
cd mock-server && npm install
orcd mock-server && yarn
-
Include the next .env file in the project root changing the keys with your own
MONGO_URL=FILL_ME NEXT_PUBLIC_API_URL=FILL_ME AUTH_SECRET=FILL_ME # Auth providers GITHUB_CLIENT_ID=FILL_ME GITHUB_SECRET=FILL_ME GITLAB_CLIENT_ID=FILL_ME GITLAB_SECRET=FILL_ME # Google cloud storage GCS_CLIENT_EMAIL=FILL_ME GCS_PROJECT_ID=FILL_ME GCS_PRIVATE_KEY=FILL_ME
Start the development server with - npm run dev
or yarn dev