Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,7 @@ Implemented that with a simple Express REST API with a function that parses the
```terminal
node index.js
```
4. Open the front-end side of the project
```terminal
cd client

```
5. Open `index.html` using live-server extension or directly on your browser at .
4. View the web application at http://127.0.0.1:8080/

<p align="right">(<a href="#top">back to top</a>)</p>

Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ var cors = require('cors')
// the express stuff now
const app = express();
app.use(cors())
app.use(express.static('client')); // Serve static files from the 'client' subdirectory
app.get('/words/fr_en/', (req, res) => {
// let wordsNum = req.params.amountOfWords;
// wordsNum ? wordsNum : 20;
Expand Down