https://github.com/nasib15/scic-server
A basic Fullstack website where an user can perform some basic search, filtering functionalities.
https://github.com/nasib15/scic-server
cors expressjs mongodb
Last synced: 2 months ago
JSON representation
A basic Fullstack website where an user can perform some basic search, filtering functionalities.
- Host: GitHub
- URL: https://github.com/nasib15/scic-server
- Owner: nasib15
- Created: 2024-08-14T11:48:11.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-20T13:09:09.000Z (almost 2 years ago)
- Last Synced: 2025-07-11T15:32:54.183Z (12 months ago)
- Topics: cors, expressjs, mongodb
- Language: JavaScript
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Project Setup
1. **Express Setup:**
```
mkdir // create directory
cd // go to the directory
npm init -y
npm install express // install express
```
2. **Paste the below code for initializing a server:**
```
const express = require('express') // import module
const app = express()
const port = 5000 // define port
app.get('/', (req, res) => {
res.send('Hello World!')
})
app.listen(port, () => {
console.log(`Example app listening on port ${port}`)
})
```
# To Run Locally
1. **Clone the repository:**
```
git clone https://github.com/nasib15/scic-client.git
cd scic-client
```
2. **Install the dependencies:**
```
npm install
```
3. **Start the development server:**
```
nodemon index.js // MUST INSTALL nodemon
```
### Build for Production:
```
npm run build
```