Skip to content

Commit

Permalink
some change
Browse files Browse the repository at this point in the history
  • Loading branch information
upendradhamala committed Apr 30, 2021
1 parent 2594265 commit 03d71b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/server.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// following is the es modules declaration style in nodejs
import express from 'express'
import path from 'path'

// import products from "./data/"
// const express = require('express')
import dotenv from 'dotenv'
Expand All @@ -11,7 +13,6 @@ import studentRoutes from './routes/studentRoutes.js'
import adminRoutes from './routes/adminRoutes.js'
import teacherRoutes from './routes/teacherRoutes.js'
import staffRoutes from './routes/staffRoutes.js'
import path from 'path'
// const items = require('./data/Data')
// const classes = require('./data/ClassData')
// d0t
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/screens/StudentRegister.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ const StudentRegister = ({ history }) => {
const { data: CLOUDINARY_UPLOAD_PRESET } = await axios.get(
'/api/config/cloudinarypreset'
)
console.log(CLOUDINARY_UPLOAD_PRESET)
console.log(CLOUDINARY_URL)
setTime(true)
setTimeout(() => {
setTime(false)
Expand Down Expand Up @@ -197,6 +199,7 @@ const StudentRegister = ({ history }) => {
required
/>
</div>
{console.log('image url is', image)}
<div className='form-control'>
<label htmlFor='registration-fees'>Registration Fees</label>
<input
Expand Down

0 comments on commit 03d71b8

Please sign in to comment.