-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bafd277
commit b382a6e
Showing
2 changed files
with
0 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,41 +15,6 @@ An implementation of the local library from [a MDN tutorial](https://developer.m | |
|
||
![Class diagram](image.png) | ||
|
||
## Installation | ||
|
||
Clone repository: | ||
|
||
```bash | ||
git clone [email protected]:creme332/my-odin-projects.git | ||
``` | ||
|
||
Navigate to project directory: | ||
|
||
```bash | ||
cd my-odin-projects/forms-and-deployment | ||
``` | ||
|
||
Install dependencies: | ||
|
||
```bash | ||
npm install | ||
``` | ||
|
||
If you don't already have a MongoDB database, follow [this tutorial](https://developer.mozilla.org/en-US/docs/Learn/Server-side/Express_Nodejs/mongoose#setting_up_the_mongodb_database) to setup your database. Then, create a file `id.js` in the root directory with the following contents: | ||
|
||
```js | ||
const mongoConnectionString = "your_string"; | ||
module.exports = mongoConnectionString; | ||
``` | ||
|
||
To start server: | ||
|
||
``` | ||
npm run devstart | ||
``` | ||
|
||
Website will be available at http://localhost:3000/catalog. | ||
|
||
## References | ||
|
||
Most of the code comes from [this MDN tutorial](https://developer.mozilla.org/en-US/docs/Learn/Server-side/Express_Nodejs/Tutorial_local_library_website). |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.