Skip to content

Commit

Permalink
Merge pull request #12 from eams1798/frontend_versioning
Browse files Browse the repository at this point in the history
last README change
  • Loading branch information
eams1798 authored Feb 10, 2024
2 parents fccbe40 + 9e531de commit 4c907cc
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ The project structure follows a standard pattern for React applications with Typ

## How to start

1. Clone the repository on your local machine, located at the root of the project (one level above the current one).
2. Go to /blogapp/backend
1. Clone the repository on your local machine.
2. Go to /backend directory
3. Install the backend dependencies with `npm install` or `yarn install`.
4. Register or log in to MongoDB Atlas
5. Create a Database in MongoDB Atlas
6. Create a .env file in the current directory. It must contain the following information:
4. Return and go to /frontend
5. Install the frontend dependencies with `npm install` or `yarn install`.
6. Register or log in to MongoDB Atlas
7. Create a Database in MongoDB Atlas
8. Create a .env file in the /backend directory. It must contain the following information:

```
PORT=3001
Expand All @@ -51,8 +53,6 @@ TEST_MONGODB_URI=mongodb+srv://yourUsername:[email protected]
SECRET=# place any word here
```

7. Start the backend development server with `npm run dev` or `yarn dev`.
8. Go back one level and go to /frontend
9. Install the frontend dependencies with `npm install` or `yarn install`.
10. Start the frontend development server with `npm run dev` or `yarn dev`.
11. Open [http://localhost:5173](http://localhost:5173) in your browser to see the application in action.
9. Build the frontend using yarn build:frontend from the /backend directory
10. Start the backend using yarn start
11. Open [http://localhost:3001](http://localhost:3001) in your browser to see the application in action.

0 comments on commit 4c907cc

Please sign in to comment.