Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juliencrn/challenge-api
Abandoned: [Back-end]: Building challenge platform
https://github.com/juliencrn/challenge-api
express expressjs mongodb mongoose nodejs rest rest-api typescript
Last synced: 14 days ago
JSON representation
Abandoned: [Back-end]: Building challenge platform
- Host: GitHub
- URL: https://github.com/juliencrn/challenge-api
- Owner: juliencrn
- Created: 2021-03-30T17:24:08.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-05T00:30:35.000Z (almost 4 years ago)
- Last Synced: 2024-10-12T01:05:26.424Z (4 months ago)
- Topics: express, expressjs, mongodb, mongoose, nodejs, rest, rest-api, typescript
- Language: TypeScript
- Homepage:
- Size: 314 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Challenge project's API
A simple Node.js Rest API using Typescript, Express and MongoDB
> https://medium.com/@shreyamduttagupta/api-authentication-using-passport-js-and-json-web-tokens-a6094df40ab0
> https://medium.com/swlh/set-up-an-express-js-app-with-passport-js-and-mongodb-for-password-authentication-6ea05d95335c#8e47
## Dev### Dependencies
Node 15
Npm 7
MongoDB### Run the app
```sh
npm run start
```### Managing the MongoDB Service
MongoDB installs as a systemd service, which means that you can manage it using standard systemd commands alongside all other sytem services in Ubuntu.
To verify the status of the service, type:
```sh
sudo systemctl status mongodb
```You can stop the server anytime by typing:
```sh
sudo systemctl stop mongodb
```To start the server when it is stopped, type:
```sh
sudo systemctl start mongodb
```You can also restart the server with a single command:
```sh
sudo systemctl restart mongodb
```By default, MongoDB is configured to start automatically with the server. If you wish to disable the automatic startup, type:
```sh
sudo systemctl disable mongodb
```It’s just as easy to enable it again. To do this, use:
```sh
sudo systemctl enable mongodb
```