Starter Next.js (14+) template for your React projects.
If you like the project, feel free to put a ⭐ ! If you need help, join the server support.
What's first :
For a better developer experience :
@
prefixClick on each arrow to see the screenshots :
git clone --depth=1 https://github.com/antoinemcx/React-Nextjs-Boilerplate.git <YOUR_PROJECT_NAME>
cd <YOUR_PROJECT_NAME>
Install the dependencies :
npm install
# or
yarn install
# or
pnpm install
This template uses a database for the authentication of next-auth.
Create the MySQL/MariaDB database and insert the database URL in the .env file.
After creating the database, run following command :
npx prisma migrate deploy
# or
yarn prisma migrate deploy
# or
pnpx prisma migrate deploy
Rename the .env.example file in the root directory into .env.
For more information on what to put in the file, please refer to the configuration guide.
npm run dev
# or
yarn dev
# or
pnpm dev
Now open http://localhost:3000 with your favorite browser to see the application.
Optional : Add a ⭐ to the repository, it helps a lot. Thanks !
In development, you will mainly use yarn dev
; however, here are all the scripts available :
yarn <script> , npm run <script> or pnpm <script> |
Description |
---|---|
dev |
Launch your app on localhost:300 |
build |
Builds the application for production and regenerate the sitemap |
start |
Serves your app for production or preview |
lint |
Lints the project to review errors before launching |
For any errors found, please contact me here or do a pull request.
This repository is licensed under the MIT License. See the LICENSE
file (here) for more information.