Skip to content

Acid-Free/senti-crud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Senti AI CRUD API

A job posting CRUD API to be showcased at Senti AI for Cloud Engineer position.

Live server links

http://ec2-35-77-197-119.ap-northeast-1.compute.amazonaws.com:5500/

http://35.77.197.119:5500/

Technologies

  • Node (version 18.xx.x) and Express (JS)
  • MongoDB
  • EJS

How to run locally (dev)

  1. Install npm
  2. Install dependencies with npm install
  3. Get your MongoDB connection string URI. More info at MongoDB docs .
  4. If Step 3 is not possible, use:
"mongodb+srv://foo:[email protected]/senti-crud-development?retryWrites=true&w=majority"
  1. Create an .env file in project root directory and add the following:
PORT=5500
API_URL="http://localhost:5500"
DB_URL=<MongoDB connection URI>
  1. Run dev build with npm run start-dev
  2. Access http://localhost:5500

How to run locally (comprehensive)

  1. For step 3, have three different MongoDB connection string URIs for production, development, and test
  2. Remove the DB_URL=<MongoDB connection URI> line inside .env
  3. Create three more .env.*: .env.production, .env.development, and .env.test and add the following:
DB_URL=<MongoDB connection URI for specific type>
  1. Run production build with npm run start
  2. Run test suites with npm run test

Screenshots

index route screenshot

Homepage, showing all job postings and form for creating one


update job posting route screenshot

Update job posting page, shows current values to be edited

About

A job posting CRUD API to be showcased at Senti AI for Cloud Engineer position.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published