A job posting CRUD API to be showcased at Senti AI for Cloud Engineer position.
http://ec2-35-77-197-119.ap-northeast-1.compute.amazonaws.com:5500/
- Node (version 18.xx.x) and Express (JS)
- MongoDB
- EJS
- Install
npm
- Install dependencies with
npm install
- Get your MongoDB connection string URI. More info at MongoDB docs .
- If Step 3 is not possible, use:
"mongodb+srv://foo:[email protected]/senti-crud-development?retryWrites=true&w=majority"
- Create an .env file in project root directory and add the following:
PORT=5500
API_URL="http://localhost:5500"
DB_URL=<MongoDB connection URI>
- Run dev build with
npm run start-dev
- Access
http://localhost:5500
- For step 3, have three different MongoDB connection string URIs for production, development, and test
- Remove the
DB_URL=<MongoDB connection URI>
line inside .env - Create three more .env.*: .env.production, .env.development, and .env.test and add the following:
DB_URL=<MongoDB connection URI for specific type>
- Run production build with
npm run start
- Run test suites with
npm run test
Homepage, showing all job postings and form for creating one
Update job posting page, shows current values to be edited