Skip to content

Commit 79782a6

Browse files
authored
Merge pull request #1 from jpcmf/docs/readme
docs: Add a quick guide to getting started with the application
2 parents a8d82e6 + 7cd4d65 commit 79782a6

File tree

2 files changed

+78
-17
lines changed

2 files changed

+78
-17
lines changed

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
STRAPI_URL=http://localhost:1337/api
2+
NEXTAUTH_SECRET=<SECRET>
3+
NEXTAUTH_URL=http://localhost:3000

README.md

Lines changed: 75 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,86 @@
1-
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
1+
# SkateHub
22

3-
## Getting Started
3+
<p align="center">
4+
<a href="#gear-build-setup">Build setup</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;
5+
<a href="#memo-changelog">Changelog</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;
6+
<a href="#rocket-nextjs-documentation">Next.js documentation</a>
7+
</p>
48

5-
First, run the development server:
9+
## SkateHub Frontend powered by Next.js
10+
11+
The project requires [Node.js](https://nodejs.org) and [Backend-GraduateProgram-FullStack-2023](https://github.com/jpcmf/Backend-GraduateProgram-FullStack-2023) to run locally.
12+
13+
## :gear: Build setup
14+
15+
Welcome! Here's a quick guide to getting started with `SkateHub Frontend`. Let's dive in:
16+
17+
### 👣 Step 1: Clone the repository
18+
19+
First things first, let's clone the repository onto your local machine. If you're not sure how to do this, no worries! Here's a simple command you can run in your terminal:
20+
21+
```bash
22+
# clone the repository
23+
24+
git clone https://github.com/jpcmf/Frontend-GraduateProgram-FullStack-2024.git
25+
```
26+
27+
### 👣 Step 2: Navigate to the project directory
28+
29+
Once the repository is cloned, navigate into the project directory using the cd command in your terminal:
30+
31+
```bash
32+
# navigate to the project directory
33+
34+
cd Frontend-GraduateProgram-FullStack-2024
35+
```
36+
37+
### 👣 Step 3: Switch to the develop branch
38+
39+
Our development work usually happens in the develop branch. Make sure you're on the right branch by executing the following command:
40+
41+
```bash
42+
# switch to the develop branch
43+
44+
git checkout develop
45+
```
46+
47+
### 👣 Step 4: Configure environment variables
48+
49+
Before running the project, you'll need to configure the environment variables. This typically involves setting up database credentials and other configurations. Locate the `.env.example` file in the project root directory, and create a new file named `.env` with your configurations. You may need to consult the project documentation for the required variables.
50+
51+
```bash
52+
# configure environment variables
53+
54+
cp .env.example .env.local
55+
```
56+
57+
### 👣 Step 5: Install dependencies
58+
59+
Now that you're in the project directory and on the correct branch, it's time to install all the dependencies. Simply run:
660

761
```bash
62+
# install dependencies
63+
npm install
64+
```
65+
66+
### 👣 Step 6: Run the project
67+
68+
You're almost there! To start the application in development mode, just type the following command:
69+
70+
```bash
71+
# run at localhost:3000
872
npm run dev
9-
# or
10-
yarn dev
11-
# or
12-
pnpm dev
13-
# or
14-
bun dev
1573
```
1674

17-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
75+
And that's it! Your `SkateHub Frontend` should now be up and running locally on your [machine](http://localhost:3000).
1876

19-
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
77+
## :memo: Changelog
2078

21-
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
79+
### 2024
2280

23-
## Learn More
81+
- 2024-03-19 - Add a quick guide to getting started with the application [#1](https://github.com/jpcmf/Frontend-GraduateProgram-FullStack-2024/pull/1) _(v0.1.0)_
82+
83+
## :rocket: Next.js documentation
2484

2585
To learn more about Next.js, take a look at the following resources:
2686

@@ -29,8 +89,6 @@ To learn more about Next.js, take a look at the following resources:
2989

3090
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
3191

32-
## Deploy on Vercel
33-
34-
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
92+
---
3593

36-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
94+
Made with 💙 by João Paulo Fricks

0 commit comments

Comments
 (0)