Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crud app answer #454

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.idea/
/node_modules/
/.env
44 changes: 22 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
#100Devs Simple Express App Submission

### Goal: Make Your Own CRUD APP and Push To Heroku

### How to submit your code for review:

- Fork and clone this repo
- Create a new branch called answer
- Checkout answer branch
- Push to your fork
- Issue a pull request
- Your pull request description should contain the following:
- (1 to 5 no 3) I completed the challenge
- (1 to 5 no 3) I feel good about my code
- Anything specific on which you want feedback!

Example:
```
I completed the challenge: 5
I feel good about my code: 4
I'm not sure if my constructors are setup cleanly...
```
# Game Tracker app
This app keeps track of all the games you want to play or have completed and store them in a database

## How It's Made:

**Tech used:** HTML, CSS, JavaScript, Express.js, ejs, mongodb

this app uses ejs template engine to generate a html page using the data from the provided by the server. when the form is submitted, the server stores the data in a mongodb database and when the page reloads the updated data is fetched and rendered into html document using the ejs template. you can also update the game status to completed or delete the entry which will be reflected in the database


## Lessons Learned:

Create and connect to mongodb database, create, update, delete document methods form mongodb.

## To run app
* After cloning the repo, in terminal run npm install
* create a .env file in the root folder
* Get your database string from MongoDB and add it to the .env file under DB_STRING variable
* to run the app, use node server.js



Loading